/* Material Design Components Customizados */

/* Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
}

/* Elevation (sombras) */
.elevation-1 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.elevation-2 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.elevation-3 {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.elevation-4 {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--secondary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
}

/* Snackbar */
.snackbar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary-color);
    z-index: 3000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Text Fields com Label Flutuante */
.text-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.text-field input,
.text-field textarea {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    border: none;
    border-bottom: 2px solid var(--divider);
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.text-field input:focus,
.text-field textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.text-field label {
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s;
}

.text-field input:focus + label,
.text-field input:not(:placeholder-shown) + label,
.text-field textarea:focus + label,
.text-field textarea:not(:placeholder-shown) + label {
    top: 0;
    left: 0;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* Checkbox e Radio Material */
.checkbox-material,
.radio-material {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

.checkbox-material input[type="checkbox"],
.radio-material input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.checkbox-material label,
.radio-material label {
    display: inline-block;
    padding-left: 2rem;
    cursor: pointer;
}

.checkbox-material label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.checkbox-material input[type="checkbox"]:checked + label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-material input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 0.25rem;
    top: 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.radio-material label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.radio-material input[type="radio"]:checked + label::before {
    border-color: var(--primary-color);
}

.radio-material input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--divider);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab:hover {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--gold-gradient);
    color: var(--secondary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

/* Divider */
.divider {
    height: 1px;
    background-color: var(--divider);
    margin: 1.5rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}
