/* =============================================
   MEAC - Plataforma do Estudante
   Estilo Corporativo Anos 2010 - Responsivo
   ============================================= */

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

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 13px;
    background-color: #e8e8e8;
    color: #222;
    line-height: 1.6;
}

a { color: #1a5276; text-decoration: none; }
a:hover { text-decoration: underline; color: #e67e22; }

/* =============================================
   TOPBAR
   ============================================= */
#topbar {
    background-color: #122840;
    color: #aac4e0;
    font-size: 11px;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
#topbar a { color: #aac4e0; }
#topbar a:hover { color: #e67e22; text-decoration: none; }

/* =============================================
   HEADER
   ============================================= */
#header {
    background-color: #1a3a5c;
    color: #fff;
    padding: 12px 15px;
    border-bottom: 3px solid #e67e22;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

#header .logo img {
    height: 58px;
    width: auto;
}

#header .logo-text h1 {
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.5px;
}

#header .logo-text h1 span { color: #e67e22; }

#header .logo-text p {
    font-size: 11px;
    color: #aac4e0;
    margin-top: 2px;
}

#header .user-info {
    font-size: 12px;
    color: #ccc;
    text-align: right;
}

#header .user-info strong { color: #e67e22; }

#header .user-info a {
    color: #e67e22;
    margin-left: 10px;
    font-weight: bold;
}

/* =============================================
   NAVIGATION
   ============================================= */
#nav {
    background-color: #2c5282;
    border-bottom: 2px solid #1a3a5c;
    position: relative;
}

#nav .nav-inner {
    display: flex;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 15px;
}

#nav ul.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#nav ul.nav-menu li a {
    display: block;
    color: #fff;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-right: 1px solid #1a3a5c;
    letter-spacing: 0.3px;
}

#nav ul.nav-menu li a:hover,
#nav ul.nav-menu li.active a {
    background-color: #1a3a5c;
    color: #e67e22;
    text-decoration: none;
}

#hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px 0;
    gap: 5px;
    margin-left: auto;
}

#hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background: #fff;
}

/* =============================================
   WRAPPER
   ============================================= */
#wrapper {
    max-width: 1050px;
    margin: 18px auto;
    padding: 0 15px;
}

/* =============================================
   BOXES
   ============================================= */
.box {
    background: #fff;
    border: 1px solid #c5c5c5;
    margin-bottom: 18px;
}

.box .box-title {
    background-color: #1a3a5c;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 3px solid #e67e22;
    letter-spacing: 0.4px;
}

.box .box-content {
    padding: 16px;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid;
    font-size: 12px;
}
.alert-success { background:#d5f5e3; border-color:#1e8449; color:#1e8449; }
.alert-error { background:#fadbd8; border-color:#922b21; color:#922b21; }
.alert-info { background:#d6eaf8; border-color:#1a5276; color:#1a5276; }

/* =============================================
   FORMS
   ============================================= */
.form-table { width: 100%; border-collapse: collapse; }
.form-table td { padding: 6px 8px; vertical-align: top; }
.form-table td:first-child {
    width: 200px;
    font-weight: bold;
    color: #333;
    padding-top: 9px;
}

.form-table input[type="text"],
.form-table input[type="password"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #aaa;
    font-size: 12px;
    font-family: Verdana, sans-serif;
    background: #fafafa;
}
.form-table input:focus {
    border-color: #1a5276;
    outline: none;
    background: #fff;
}

.form-table .readonly-field {
    padding: 6px 8px;
    background: #f0f4f8;
    border: 1px solid #ccc;
    color: #555;
    font-size: 12px;
    display: block;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #888;
    text-decoration: none;
}
.btn-primary { background-color: #1a3a5c; color: #fff; border-color: #122840; }
.btn-primary:hover { background-color: #122840; color: #fff; text-decoration: none; }
.btn-success { background-color: #1e8449; color: #fff; border-color: #145a32; }
.btn-success:hover { background-color: #145a32; color: #fff; text-decoration: none; }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    background: #f0f4f8;
    border: 1px solid #c5c5c5;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.filter-bar label { font-weight: bold; font-size: 12px; }
.filter-bar select {
    padding: 4px 7px;
    border: 1px solid #aaa;
    font-size: 12px;
    font-family: Verdana, sans-serif;
}

/* =============================================
   DATA TABLE
   ============================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.data-table th {
    background-color: #1a3a5c;
    color: #fff;
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #122840;
}
.data-table td {
    padding: 6px 9px;
    border: 1px solid #ccc;
    vertical-align: middle;
}
.data-table tr:nth-child(even) td { background-color: #f0f4f8; }
.data-table tr:hover td { background-color: #d6e8f7; }
.data-table th.center, .data-table td.center { text-align: center; }

/* =============================================
   PAUTA TABLE
   ============================================= */
.pauta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.pauta-table th {
    background-color: #1a3a5c;
    color: #fff;
    padding: 7px 9px;
    text-align: center;
    border: 1px solid #122840;
    font-size: 11px;
}
.pauta-table th.left { text-align: left; }
.pauta-table td {
    padding: 6px 8px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
}
.pauta-table td.left { text-align: left; }
.pauta-table tr:nth-child(even) td { background-color: #f0f4f8; }

.nota-aprovado { color: #1e8449; font-weight: bold; }
.nota-reprovado { color: #922b21; font-weight: bold; }
.nota-pendente { color: #888; font-style: italic; }

/* =============================================
   STUDENT PROFILE CARD
   ============================================= */
.profile-card {
    background: #f0f4f8;
    border: 1px solid #c5c5c5;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.profile-card .avatar {
    width: 60px;
    height: 60px;
    background-color: #1a3a5c;
    border: 2px solid #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    flex-shrink: 0;
}
.profile-card .info h2 {
    font-size: 15px;
    color: #1a3a5c;
    font-weight: bold;
}
.profile-card .info p {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.profile-card .info .email-badge {
    display: inline-block;
    background-color: #1a3a5c;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

/* =============================================
   STAT BOXES (dashboard)
   ============================================= */
.stat-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.stat-box {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border: 1px solid #c5c5c5;
    border-top: 3px solid #1a3a5c;
    padding: 14px 16px;
    text-align: center;
}
.stat-box .stat-num {
    font-size: 28px;
    font-weight: bold;
    color: #1a3a5c;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-box .stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.stat-box.orange { border-top-color: #e67e22; }
.stat-box.orange .stat-num { color: #e67e22; }
.stat-box.green { border-top-color: #1e8449; }
.stat-box.green .stat-num { color: #1e8449; }

/* =============================================
   LOGIN PAGE
   ============================================= */
#login-page {
    min-height: 100vh;
    background-color: #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#login-box {
    background: #fff;
    border: 1px solid #c5c5c5;
    width: 380px;
    max-width: 100%;
}

#login-box .login-header {
    background-color: #1a3a5c;
    color: #fff;
    text-align: center;
    padding: 18px 15px;
    border-bottom: 3px solid #e67e22;
}

#login-box .login-header .logo-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

#login-box .login-header .logo-login img {
    height: 52px;
    width: auto;
}

#login-box .login-header h1 {
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: bold;
}

#login-box .login-header h1 span { color: #e67e22; }

#login-box .login-header p {
    font-size: 11px;
    color: #aac4e0;
    margin-top: 4px;
}

#login-box .login-badge {
    background-color: #2c5282;
    color: #cce0f5;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #1a3a5c;
}

#login-box .login-body {
    padding: 20px;
}

#login-box .login-body label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 12px;
    color: #333;
}

#login-box .login-body input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #aaa;
    font-size: 13px;
    font-family: Verdana, sans-serif;
    margin-bottom: 14px;
    background: #fafafa;
}

#login-box .login-body input:focus {
    border-color: #1a5276;
    outline: none;
    background: #fff;
}

#login-box .login-body button {
    width: 100%;
    padding: 10px;
    background-color: #1a3a5c;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#login-box .login-body button:hover { background-color: #122840; }

#login-box .login-footer {
    text-align: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #888;
}

#login-box .login-footer a {
    color: #1a5276;
    margin: 0 6px;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    background-color: #1a3a5c;
    color: #aac4e0;
    text-align: center;
    padding: 12px 15px;
    font-size: 11px;
    border-top: 3px solid #e67e22;
    margin-top: 20px;
}

#footer a { color: #e67e22; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
    #header { flex-direction: column; align-items: flex-start; }
    #header .user-info { text-align: left; }

    #hamburger { display: flex; }

    #nav ul.nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #2c5282;
        z-index: 999;
        border-top: 2px solid #e67e22;
    }
    #nav ul.nav-menu.open { display: flex; }
    #nav ul.nav-menu li a {
        border-right: none;
        border-bottom: 1px solid #1a3a5c;
        padding: 13px 16px;
    }

    .stat-row { flex-direction: column; }
    .stat-box { min-width: 100%; }

    .form-table tr { display: block; margin-bottom: 8px; }
    .form-table td { display: block; padding: 2px 0; }
    .form-table td:first-child { width: auto; padding-top: 4px; }

    .pauta-table, .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #topbar { flex-direction: column; align-items: flex-start; }
    .profile-card { flex-direction: column; }
}
