/* Neumorphic/Soft 3D Styles for Admin Content Pages */

:root {
    --admin-bg: #ebeff9;
    --admin-text: #2C3E50;
    --admin-accent: #3498DB;
    --admin-shadow-light: #ffffff;
    --admin-shadow-dark: #d1d9e6;
    --admin-shadow-main: -6px -6px 12px var(--admin-shadow-light), 6px 6px 12px var(--admin-shadow-dark);
    --admin-shadow-inset: inset -4px -4px 8px var(--admin-shadow-light), inset 4px 4px 8px var(--admin-shadow-dark);
}

.admin-page-container {
    /* padding: 2rem 2.5rem; Padding removed to be handled by inner containers */
    background-color: var(--admin-bg);
}

@media (max-width: 768px) {
    .admin-page-container {
        padding: 1.5rem 12px;
    }
}

.admin-content-card {
    background: var(--admin-bg);
    border-radius: 20px;
    padding: 2rem 2rem 2rem 0; /* Left padding removed */
    box-shadow: var(--admin-shadow-main);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin-shadow-dark);
}

.admin-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Table Styles */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem; /* Space between rows */
}

.admin-table thead th {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.5rem 1rem;
    color: #5a6a7a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.admin-table tbody tr {
    background: var(--admin-bg);
    border-radius: 15px;
    box-shadow: var(--admin-shadow-main);
    transition: all 0.2s ease-in-out;
}

.admin-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: -8px -8px 16px var(--admin-shadow-light), 8px 8px 16px var(--admin-shadow-dark);
}

.admin-table tbody td {
    padding: 1.2rem 1rem;
    border: none;
    vertical-align: middle;
    color: var(--admin-text);
    word-break: break-word; /* Prevent overflow */
}

.admin-table tbody td:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.admin-table tbody td:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.admin-table thead th:first-child,
.admin-table tbody td:first-child {
    padding-left: 2rem; /* Symmetrical space */
}

.admin-table thead th:last-child,
.admin-table tbody td:last-child {
    padding-right: 2rem; /* Extra space for organization */
}

.table-text-strong {
    font-weight: 700;
}

.table-text-muted {
    font-size: 0.9rem;
    color: #5a6a7a;
}

/* Badge Styles */
.admin-badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    color: var(--admin-accent);
    background-color: var(--admin-bg);
    box-shadow: var(--admin-shadow-inset);
}

/* Button Styles */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.admin-btn-primary {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    box-shadow: var(--admin-shadow-main);
}
.admin-btn-primary:hover {
    color: var(--admin-accent);
}
.admin-btn-primary:active {
    box-shadow: var(--admin-shadow-inset);
    color: var(--admin-accent);
}

.admin-btn-secondary {
    background-color: transparent;
    color: #5a6a7a;
}
.admin-btn-secondary:hover {
    color: var(--admin-accent);
}

@media (max-width: 768px) {
    .table-action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Pagination Styles */
.admin-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.admin-pagination .pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 0.5rem;
}

.admin-pagination .page-item .page-link {
    position: relative;
    display: block;
    color: var(--admin-text);
    text-decoration: none;
    background-color: var(--admin-bg);
    border: none;
    transition: all 0.2s ease-in-out;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    box-shadow: var(--admin-shadow-main);
}

.admin-pagination .page-item .page-link:hover {
    z-index: 2;
    color: var(--admin-accent);
    background-color: var(--admin-bg);
}

.admin-pagination .page-item.active .page-link {
    z-index: 3;
    color: var(--admin-accent);
    background-color: var(--admin-bg);
    box-shadow: var(--admin-shadow-inset);
}

.admin-pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: var(--admin-bg);
    opacity: 0.6;
}

/* Profile Page Styles */
.admin-content-card .form-label {
    color: #000000;
    font-weight: bold;
}

.admin-content-card h5 {
    color: #000000;
}

.admin-content-card p.text-muted {
    color: #000000 !important;
}

.admin-content-card .btn-primary {
    color: #000000; /* Set button text to black for visibility */
    font-weight: bold;
} 