/**
 * Common styles for the application
 * Shared across public and admin views
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    color: #000;
}

/* Header styles */
.header {
    background-color: #84bba4;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Button styles */
.btn-back,
.btn-login {
    padding: 10px 20px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-back:hover,
.btn-login:hover {
    background-color: #ffffff;
    color: #005B52;
}

.btn-primary {
    padding: 10px 20px;
    background-color: #005B52;
    color: #ffffff;
    border: none;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #004a42;
}

.btn-login {
    background-color: #005B52;
    border: none;
}

.btn-login:hover {
    background-color: #004a42;
    color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Messages */
.mensaje {
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 0;
    font-size: 13px;
    display: none;
}

.mensaje.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.mensaje.exito {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.mensaje.mostrar {
    display: block;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #B3B3B3;
    border-top-color: #005B52;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Icon buttons */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    margin-left: 4px;
    background-color: #005B52;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.icon-button:hover {
    opacity: 0.85;
}

.icon-button--edit {
    background-color: #FF9800;
}

.icon-button--add {
    background-color: #04BF8A;
}

.icon-button--delete {
    background-color: #c62828;
}

