/* ==========================================================================
   EDULINK - ESTILO SIMPLES E MINIMALISTA
   ========================================================================== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #2c3e50;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Layout */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px;
    flex: 1;
}

/* Header */
header {
    background-color: #1a252f;
    border-bottom: 2px solid #34495e;
    padding: 10px 0;
    width: 100%;
}

.header-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Typography */
h1 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 15px;
}

h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

p {
    color: #bdc3c7;
    margin-bottom: 15px;
}

.card p {
    color: #555555;
}

/* Cards */
.card {
    background: #ffffff;
    color: #333333;
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* For grids where card is stretched */
.grid-classes .card {
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    color: #333333;
    background-color: #ffffff;
}

input:focus,
select:focus {
    border-color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #27ae60; /* Verde do Acessar/Salvar original */
}

.btn-primary:hover {
    background-color: #1e8449;
}

.btn-secondary {
    background-color: #3498db; /* Azul original */
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #1e8449;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Outline button inside cards (needs dark text/border) */
.card .btn-outline {
    border-color: #2c3e50;
    color: #2c3e50;
}

.card .btn-outline:hover {
    background-color: rgba(44, 62, 80, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-full {
    width: 100%;
}

/* Grids & Flex Lists */
.grid-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.class-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    height: 140px;
    width: 240px;
}

.class-card:hover {
    transform: scale(1.03);
}

.class-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Activities list */
.activities-list {
    margin-top: 15px;
}

.activity-item {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.activity-info {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Admin List */
.admin-turma-row {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.admin-turma-row:last-child {
    border-bottom: none;
}

.admin-actions {
    display: flex;
    gap: 5px;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 25px 10px;
    color: #bdc3c7;
    font-size: 14px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Admin Page Layout */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header-title {
    text-align: left;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.admin-col-forms {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px 5px;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 20px 15px;
        margin: 10px auto;
    }
    
    .grid-classes {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .class-card {
        width: 100%;
        max-width: 400px;
        height: auto;
        padding: 15px;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: stretch;
    }
    
    .activity-item .btn {
        width: 100%;
    }
    
    .admin-turma-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    .logo-img {
        height: 38px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header-title {
        text-align: center;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

