/* ============================================ ADMIN PAGES THEME - EARTHY COLORS ============================================ */



/* Page Container */
.admin-page-container {
    background-color: var(--earth-lightest);
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
}

/* Page Header */
.admin-page-header {
    background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-active) 100%);
    color: var(--earth-lightest);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(122, 107, 94, 0.2);
}

.admin-page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--earth-lightest);
}

.admin-page-header .header-subtitle {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--earth-lightest);
    opacity: 0.9;
}

/* Cards */
.admin-card {
    background: linear-gradient(135deg, var(--earth-lightest) 0%, var(--earth-light) 100%);
    border: 1px solid rgba(179, 166, 150, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(122, 107, 94, 0.1);
    margin-bottom: 2rem;
}

.admin-card-header {
    background-color: rgba(122, 107, 94, 0.08);
    border-bottom: 2px solid var(--earth-dark);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
}

.admin-card-header h5 {
    margin: 0;
    color: var(--earth-darkest);
    font-weight: 600;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Alerts */
.alert-info-custom {
    background-color: rgba(94, 122, 122, 0.1);
    border: 1px solid rgba(94, 122, 122, 0.3);
    border-left: 4px solid var(--earth-info);
    color: var(--earth-darkest);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-warning-custom {
    background-color: rgba(201, 168, 106, 0.1);
    border: 1px solid rgba(201, 168, 106, 0.3);
    border-left: 4px solid var(--earth-warning);
    color: var(--earth-darkest);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success-custom {
    background-color: rgba(107, 142, 95, 0.1);
    border: 1px solid rgba(107, 142, 95, 0.3);
    border-left: 4px solid var(--earth-success);
    color: var(--earth-darkest);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table thead {
    background-color: rgba(122, 107, 94, 0.1);
    border-bottom: 2px solid var(--earth-dark);
}

.admin-table thead th {
    color: var(--earth-darkest);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(179, 166, 150, 0.2);
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: rgba(122, 107, 94, 0.05);
}

.admin-table tbody td {
    padding: 1rem;
    color: var(--earth-darkest);
    font-size: 0.95rem;
}

/* Badges */
.badge-earth {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(107, 142, 95, 0.2);
    color: var(--earth-success);
    border: 1px solid rgba(107, 142, 95, 0.4);
}

.badge-error {
    background-color: rgba(181, 112, 93, 0.2);
    color: var(--earth-error);
    border: 1px solid rgba(181, 112, 93, 0.4);
}

.badge-info {
    background-color: rgba(94, 122, 122, 0.2);
    color: var(--earth-info);
    border: 1px solid rgba(94, 122, 122, 0.4);
}

.badge-warning {
    background-color: rgba(201, 168, 106, 0.2);
    color: var(--earth-warning);
    border: 1px solid rgba(201, 168, 106, 0.4);
}

/* Buttons */
.btn-earth-primary {
    background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-active) 100%) !important;
    color: var(--earth-lightest) !important;
    border: none !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-earth-primary:hover {
    background: linear-gradient(135deg, var(--earth-hover) 0%, var(--earth-dark) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(122, 107, 94, 0.3);
    color: var(--earth-lightest) !important;
}

.btn-earth-primary:active {
    transform: translateY(0);
}

.btn-earth-secondary {
    background-color: rgba(122, 107, 94, 0.1) !important;
    color: var(--earth-dark) !important;
    border: 1px solid rgba(122, 107, 94, 0.3) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-earth-secondary:hover {
    background-color: rgba(122, 107, 94, 0.2) !important;
    border-color: var(--earth-dark) !important;
    color: var(--earth-darkest) !important;
}

.btn-earth-danger {
    background-color: rgba(181, 112, 93, 0.15) !important;
    color: var(--earth-error) !important;
    border: 1px solid rgba(181, 112, 93, 0.3) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-earth-danger:hover {
    background-color: var(--earth-error) !important;
    color: var(--earth-lightest) !important;
    border-color: var(--earth-error) !important;
}

/* Button Groups */
.btn-group-earth {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Forms */
.form-control-earth {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--earth-light);
    border: 1px solid rgba(179, 166, 150, 0.3);
    color: var(--earth-darkest);
    padding: 0.6rem 0.875rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.form-control-earth:focus {
    outline: none;
    border-color: var(--earth-dark);
    background-color: var(--earth-lightest);
    box-shadow: 0 0 0 3px rgba(122, 107, 94, 0.1);
}

/* Select dropdowns */
select.form-control-earth {
    height: auto;
    appearance: auto;
}

/* Custom Checkboxes */
input[type="checkbox"],
input[type="checkbox"].form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid var(--earth-dark);
    border-radius: 4px;
    background-color: var(--earth-lightest);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

input[type="checkbox"]:hover,
input[type="checkbox"].form-check-input:hover {
    border-color: var(--earth-hover);
    background-color: rgba(122, 107, 94, 0.05);
}

input[type="checkbox"]:checked,
input[type="checkbox"].form-check-input:checked {
    background: linear-gradient(135deg, var(--earth-darkest) 0%, var(--earth-dark) 100%);
    border-color: var(--earth-darkest);
}

input[type="checkbox"]:checked::after,
input[type="checkbox"].form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

input[type="checkbox"]:focus,
input[type="checkbox"].form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 107, 94, 0.2);
    border-color: var(--earth-dark);
}

input[type="checkbox"]:disabled,
input[type="checkbox"].form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group-earth {
    margin-bottom: 1.5rem;
}

.form-label-earth {
    display: block;
    color: var(--earth-darkest);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Links */
.link-earth {
    color: var(--earth-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.link-earth:hover {
    color: var(--earth-active);
    border-bottom-color: var(--earth-dark);
}

/* Sections */
.section-earth {
    background-color: var(--earth-light);
    border-left: 4px solid var(--earth-dark);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.section-title-earth {
    color: var(--earth-darkest);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal-content-earth {
    background: linear-gradient(135deg, var(--earth-lightest) 0%, var(--earth-light) 100%);
    border: 1px solid rgba(179, 166, 150, 0.2);
}

.modal-header-earth {
    background-color: rgba(122, 107, 94, 0.08);
    border-bottom: 2px solid var(--earth-dark);
    color: var(--earth-darkest);
}

.modal-title-earth {
    font-weight: 600;
    color: var(--earth-darkest);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-page-header {
        padding: 1.5rem;
    }

    .admin-page-header h1 {
        font-size: 1.5rem;
    }

    .admin-card-body {
        padding: 1rem;
    }

    .admin-table tbody td,
    .admin-table thead th {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .btn-earth-primary,
    .btn-earth-secondary,
    .btn-earth-danger {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* ============================================ UTILITY COLOR CLASSES ============================================ */

/* Error/Danger Color Utilities */
.bg-earth-error-light {
    background-color: var(--earth-error-bg);
}

.bg-earth-error-lighter {
    background-color: rgba(181, 112, 93, 0.1) !important;
}

.border-earth-error {
    border: 1px solid rgba(181, 112, 93, 0.3) !important;
}

.border-left-earth-error {
    border-left: 4px solid var(--earth-error) !important;
}

.text-earth-error {
    color: var(--earth-error);
}

/* Warning Color Utilities */
.bg-earth-warning-light {
    background-color: var(--earth-warning-bg);
}

.bg-earth-warning-lighter {
    background-color: rgba(201, 168, 106, 0.1) !important;
}

.border-earth-warning {
    border: 1px solid rgba(201, 168, 106, 0.3) !important;
}

.border-left-earth-warning {
    border-left: 4px solid var(--earth-warning) !important;
}

.text-earth-warning {
    color: var(--earth-warning);
}

/* Info Color Utilities */
.bg-earth-info-light {
    background-color: var(--earth-info-bg);
}

.bg-earth-info-lighter {
    background-color: rgba(94, 122, 122, 0.1) !important;
}

.border-earth-info {
    border: 1px solid rgba(94, 122, 122, 0.3) !important;
}

.border-left-earth-info {
    border-left: 4px solid var(--earth-info) !important;
}

.text-earth-info {
    color: var(--earth-info);
}

/* Success Color Utilities */
.bg-earth-success-light {
    background-color: var(--earth-success-bg);
}

.bg-earth-success-lighter {
    background-color: rgba(107, 142, 95, 0.1) !important;
}

.border-earth-success {
    border: 1px solid rgba(107, 142, 95, 0.3) !important;
}

.border-left-earth-success {
    border-left: 4px solid var(--earth-success) !important;
}

.text-earth-success {
    color: var(--earth-success);
}
