/* =============================================================================
   MCPL - Styles Administration
   ============================================================================= */

/* Alertes */
.alert {
    padding: 1em 1.5em;
    border-radius: 4px;
    margin-bottom: 1.5em;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-danger {
    background: #dc3545;
    color: #fff;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

/* Login */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 2em;
    background: #f5f6f7;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5em;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-wrapper th {
    background: #f5f6f7;
    font-weight: 600;
}

.table-wrapper tr:hover {
    background: #f9f9f9;
}

/* Box */
.box {
    background: #f5f6f7;
    padding: 1.5em;
    border-radius: 6px;
    margin-bottom: 2em;
}

.box h3 {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Admin sidebar active */
#sidebar nav#menu ul li a.active {
    color: #487854;
    font-weight: 600;
}

/* Forms */
label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    margin-bottom: 1em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #487854;
    outline: none;
    box-shadow: 0 0 0 3px rgba(72,120,84,0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox */
input[type="checkbox"] {
    margin-right: 0.5em;
}

input[type="checkbox"] + label {
    display: inline;
    font-weight: normal;
}

/* Buttons */
.button.small {
    padding: 0.4em 0.8em;
    font-size: 0.85em;
}

.actions.stacked li {
    margin-bottom: 0.5em;
}

/* Stats features */
.features article {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.5em;
    transition: box-shadow 0.2s;
}

.features article:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.features article .icon {
    font-size: 2em;
    color: #487854;
}

/* Code */
code {
    background: #f5f6f7;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        margin: 1em;
        padding: 1.5em;
    }

    .table-wrapper {
        font-size: 0.9em;
    }

    .button.small {
        display: block;
        margin-bottom: 0.5em;
        text-align: center;
    }
}
