/**
 * Estilos Customizados - SysMúsica
 * Baseado no design moderno e limpo
 */

:root {
    --primary-yellow: #FFD700;
    --light-yellow: #FFF9E6;
    --yellow-bg: #FFFACD;
    --dark-gray: #2C3E50;
    --medium-gray: #7F8C8D;
    --light-gray: #ECF0F1;
    --input-bg: #F5F5F5;
    --white: #FFFFFF;
    --success-green: #27AE60;
    --blue-accent: #3498DB;
    --green-accent: #2ECC71;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FAFAFA;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
body {
    position: relative;
    overflow-x: hidden;
}

.login-school-name {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-school-name span {
    font-size: 1.5rem;
}

.music-notes-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.note {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 215, 0, 0.15);
    animation: float 15s infinite ease-in-out;
}

.note-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.note-2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    font-size: 2.5rem;
}

.note-3 {
    top: 40%;
    left: 8%;
    animation-delay: 4s;
    font-size: 3.5rem;
}

.note-4 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    font-size: 2.8rem;
}

.note-5 {
    top: 30%;
    left: 20%;
    animation-delay: 3s;
    font-size: 2.2rem;
}

.note-6 {
    top: 70%;
    right: 8%;
    animation-delay: 5s;
    font-size: 3.2rem;
}

.note-7 {
    top: 15%;
    left: 50%;
    animation-delay: 1.5s;
    font-size: 2.6rem;
}

.note-8 {
    top: 50%;
    right: 25%;
    animation-delay: 3.5s;
    font-size: 2.4rem;
}

.note-9 {
    top: 80%;
    left: 15%;
    animation-delay: 2.5s;
    font-size: 3rem;
}

.note-10 {
    top: 35%;
    right: 5%;
    animation-delay: 4.5s;
    font-size: 2.7rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.2;
    }
}

/* Ícones Musicais Adicionais */
.music-icon {
    position: absolute;
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.12);
    animation: floatSlow 20s infinite ease-in-out;
    font-family: 'Times New Roman', serif;
}

.icon-1 {
    top: 5%;
    left: 12%;
    animation-delay: 0s;
    font-size: 5rem;
}

.icon-2 {
    top: 25%;
    right: 12%;
    animation-delay: 3s;
    font-size: 4.5rem;
}

.icon-3 {
    top: 65%;
    left: 10%;
    animation-delay: 6s;
    font-size: 4rem;
}

.icon-4 {
    top: 45%;
    right: 8%;
    animation-delay: 2s;
    font-size: 3.5rem;
}

.icon-5 {
    top: 75%;
    left: 25%;
    animation-delay: 4s;
    font-size: 3.8rem;
}

.icon-6 {
    top: 12%;
    left: 60%;
    animation-delay: 1s;
    font-size: 3rem;
}

.icon-7 {
    top: 55%;
    right: 20%;
    animation-delay: 5s;
    font-size: 3.2rem;
}

.icon-8 {
    top: 85%;
    right: 15%;
    animation-delay: 3.5s;
    font-size: 3.5rem;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    33% {
        transform: translateY(-40px) rotate(8deg) scale(1.1);
        opacity: 0.15;
    }
    66% {
        transform: translateY(-20px) rotate(-8deg) scale(0.9);
        opacity: 0.12;
    }
}

/* SVGs de Instrumentos */
.music-svg {
    position: absolute;
    width: 80px;
    height: 80px;
    color: rgba(255, 215, 0, 0.1);
    animation: floatRotate 25s infinite ease-in-out;
}

.music-svg svg {
    width: 100%;
    height: 100%;
}

.svg-1 {
    top: 8%;
    right: 30%;
    animation-delay: 0s;
    width: 100px;
    height: 100px;
}

.svg-2 {
    top: 50%;
    left: 30%;
    animation-delay: 8s;
    width: 90px;
    height: 90px;
}

.svg-3 {
    top: 70%;
    right: 35%;
    animation-delay: 4s;
    width: 70px;
    height: 70px;
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-50px) rotate(15deg);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-80px) rotate(-15deg);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-50px) rotate(10deg);
        opacity: 0.12;
    }
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAFAFA;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

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

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

.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.login-icon {
    width: 60px;
    height: 60px;
    background: var(--yellow-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.login-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-yellow);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.login-form .form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-form .form-control {
    background-color: var(--input-bg);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.login-form .form-control:focus {
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    border: 1px solid var(--primary-yellow);
}

.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-right: 2.5rem;
}

.input-group-icon .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    pointer-events: none;
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: var(--dark-gray);
}

.btn-login {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    color: var(--dark-gray);
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.register-link a {
    color: var(--dark-gray);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
    background-color: #FAFAFA;
    min-height: 100vh;
}

.dashboard-header {
    background: var(--white);
    padding: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.dashboard-welcome {
    margin-bottom: 0.5rem;
}

.dashboard-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.dashboard-welcome p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin: 0;
}

.dashboard-search {
    position: relative;
    max-width: 400px;
}

.dashboard-search .form-control {
    background-color: var(--input-bg);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
}

.dashboard-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-card.highlight {
    background: var(--primary-yellow);
}

.stat-card.highlight .stat-value,
.stat-card.highlight .stat-label {
    color: var(--dark-gray);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--yellow-bg);
}

.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.stat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--success-green);
    color: white;
}

.stat-card.highlight .stat-badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--dark-gray);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-yellow);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--yellow-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card:hover .action-icon {
    background: var(--primary-yellow);
}

.action-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Today's Schedule */
.schedule-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schedule-day-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-yellow);
    color: var(--dark-gray);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.schedule-dot.yellow {
    background: var(--primary-yellow);
}

.schedule-dot.gray {
    background: var(--medium-gray);
}

.schedule-dot.green {
    background: var(--success-green);
}

.schedule-dot.red {
    background: #E74C3C;
}

.schedule-info {
    flex: 1;
}

.schedule-time {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.schedule-details {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Recent Activity */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yellow-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.activity-time {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--light-gray);
    padding: 0;
}

.sidebar .logo {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar .logo h4 {
    margin: 0;
    font-weight: 700;
    color: var(--dark-gray);
}

.sidebar .nav-link {
    color: var(--medium-gray);
    padding: 0.875rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.sidebar .nav-link.active {
    background-color: var(--yellow-bg);
    border-left-color: var(--primary-yellow);
    color: var(--dark-gray);
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--white);
    color: var(--dark-gray);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid var(--light-gray);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    color: var(--dark-gray);
}

.btn-success {
    background-color: var(--success-green);
    border: none;
}

.btn-danger {
    background-color: #E74C3C;
    border: none;
}

/* Tables */
.table {
    background: white;
}

.table thead {
    background-color: var(--light-gray);
}

.table thead th {
    border-bottom: 2px solid var(--light-gray);
    font-weight: 600;
    color: var(--dark-gray);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-header {
        padding: 1rem;
    }
}
