/* modulos/assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ===== LOGIN ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.login-box .logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.login-box h2 {
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.login-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.login-box .form-group {
    text-align: left;
    margin-bottom: 18px;
}

.login-box .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.login-box .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-box .form-group input:focus {
    border-color: #fbb200;
    outline: none;
}

.btn-primary {
    background: #fbb200;
    color: #000;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: #e0a800;
    transform: scale(1.02);
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
}

/* ===== DASHBOARD HEADER ===== */
.dashboard-header {
    background: #000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-content .logo {
    max-height: 50px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 14px;
    flex-wrap: wrap;
}

.user-info a {
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 30px;
    transition: 0.3s;
    font-weight: 500;
}

.btn-admin {
    background: #fbb200;
    color: #000 !important;
}

.btn-admin:hover {
    background: #e0a800;
}

.btn-logout {
    background: #dc3545;
}

.btn-logout:hover {
    background: #c82333;
}

/* ===== DASHBOARD MAIN ===== */
.dashboard-main {
    padding: 40px 0;
}

.dashboard-main h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.dashboard-main .subtitle {
    color: #666;
    margin-bottom: 30px;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.modulo-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.modulo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(251, 178, 0, 0.15);
    border-color: #fbb200;
}

.modulo-icon {
    width: 70px;
    height: 70px;
    background: #fbb200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #000;
    margin-bottom: 15px;
}

.modulo-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.modulo-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-footer {
    font-weight: 600;
    color: #fbb200;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.modulo-card:hover .card-footer {
    gap: 12px;
}

/* ===== ADMIN MODULOS ===== */
.admin-form {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.admin-form h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000;
}

.admin-form .form-group {
    margin-bottom: 18px;
}

.admin-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.admin-form .form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.admin-form .form-group input:focus {
    border-color: #fbb200;
    outline: none;
}

.admin-form .checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.admin-form .checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.modulos-list {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.modulos-list h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.modulos-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modulos-list th {
    text-align: left;
    padding: 12px 10px;
    background: #f5f6f7;
    font-weight: 600;
}

.modulos-list td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.modulos-list .btn-edit {
    background: #fbb200;
    color: #000;
    padding: 4px 10px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
}

.modulos-list .btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .user-info {
        justify-content: center;
    }
    .modulos-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .modulos-grid {
        grid-template-columns: 1fr;
    }
    .login-box {
        padding: 30px 20px;
    }
}