
:root {
    --color-primary-dark: #0A192F;  
    --color-primary-blue: #1E3A8A;      
    --color-primary-light: #3B82F6;  
    --color-bg-light: rgba(248, 250, 252);  
    --color-card-bg: rgba(255, 255, 255);   
    --color-border: rgba(226, 232, 240);   
    --text-main: #0F172A;   
    --text-muted: #64748B;     
    --text-white: #FFFFFF;    
    --header-height: 70px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.2s;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #0A192F;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    background-image: url(./ASSETS/WhatsApp\ Image\ 2026-07-10\ at\ 14.58.42.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
}

.nav-btn {
    width: calc(100% - 32px);
    margin: 4px 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    border-radius: var(--border-radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-speed) ease;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}
.nav-btn.active {
    background-color: var(--color-primary-blue);
    color: var(--text-white);
    font-weight: 600;
}

.nav-btn svg {
    stroke: currentColor;
    transition: stroke var(--transition-speed) ease;
}

.nav-logout-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 16px;
}

.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #F87171;
}

.main-content {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}


.main-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.top-nav {
    width: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 95;
}
.top-nav .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.top-nav li {
    margin-right: 4px;
}
.top-nav .nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) ease;
}
.top-nav .nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}
.top-nav .nav-btn.active {
    background-color: var(--color-primary-blue);
    color: var(--text-white);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-right .admin-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-right .admin-search input {
    background-color: rgba(255, 255, 255)
    border: 1px solid rgba(255, 255, 255);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px 8px 36px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    color: var(--text-white);
    width: 200px;
    transition: all var(--transition-speed) ease;
}
.nav-right .admin-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.nav-right .admin-search input:focus {
    outline: none;
    background-color: rgba(255, 255, 255);
    border-color: rgba(255, 255, 255);
    width: 240px;
}
.nav-right .admin-search svg {
    position: absolute;
    left: 12px;
    stroke: rgba(255, 255, 255);
}
.nav-right .profile-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-right .profile-name-mini {
    color: rgb(255, 255, 255);
    font-size: 0.85rem;
    font-weight: 500;
}
.nav-right .mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgb(255, 255, 255);
}

.admin-search {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search input {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px 8px 40px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    width: 240px;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.admin-search input:focus {
    border-color: var(--color-primary-blue);
    background-color: var(--color-card-bg);
    box-shadow: 0 0 0 2px rgb(30, 58, 138);
}

.admin-search svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--color-border);
}

.profile-details-mini {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.profile-name-mini {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.profile-role-mini {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-blue);
}

.content-body {
    padding: 32px;
    flex: 1;
}

.hidden {
    display: none !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(15, 23, 42);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--color-primary-dark);
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.table-container {
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.table-header-bar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header-bar h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.scrollable-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

th {
    background-color: rgb(248, 250, 252);
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(248, 250, 252);
}

.status-text {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.status-pending {
    color: var(--text-muted);
    font-weight: 500;
}

.status-approved {
    color: var(--color-primary-blue);
    border-bottom: 1.5px solid var(--color-primary-blue);
    padding-bottom: 1px;
}

.status-claimed {
    color: var(--color-primary-dark);
    font-style: italic;
    opacity: 0.8;
}

.status-closed {
    color: #94A3B8;
    text-decoration: line-through;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.primary-btn {
    background-color: var(--color-primary-blue);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    background-color: var(--color-primary-dark);
}

.secondary-btn {
    background-color: var(--color-card-bg);
    color: var(--color-primary-blue);
    border: 1px solid var(--color-primary-blue);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.secondary-btn:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.danger-btn {
    background-color: var(--color-card-bg);
    color: #DC2626;
    border: 1px solid #FCA5A5;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

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

.text-btn {
    background: none;
    border: none;
    color: var(--color-primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 4px 8px;
}

.text-btn:hover {
    text-decoration: underline;
}

.text-link-btn {
    background: none;
    border: none;
    color: var(--color-primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.text-link-btn:hover {
    color: var(--color-primary-dark);
}

.section-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-group select {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
    background-color: var(--color-card-bg);
}

.filter-group select:focus {
    border-color: var(--color-primary-blue);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.item-card {
    background-color: rgb(255, 255, 255);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.item-card-image {
    height: 180px;
    position: relative;
    background-color: #F1F5F9;
}

.item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-primary-dark);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.item-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.item-meta-row {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.item-meta-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
}

.profile-card {
    max-width: 500px;
    background-color: rgb(255, 255, 255);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-large-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-border);
    margin-bottom: 16px;
}

.profile-card-header h2 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.profile-role-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.profile-card-details {
    margin-bottom: 28px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

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

.detail-label {
    font-weight: 500;
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--text-main);
}

.profile-card-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-footer {
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.user-profile-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-blue);
}

.user-info-list {
    width: 100%;
    text-align: left;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-logo h2,
    .sidebar-nav span {
        display: none; 
    }
    
    .nav-btn {
        justify-content: center;
        padding: 12px;
        width: calc(100% - 16px);
        margin: 4px 8px;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .sidebar-logo {
        height: 60px;
    }
    
    .sidebar-nav {
        padding: 8px 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        padding: 4px 16px;
    }
    
    .nav-btn {
        margin: 0 4px;
        white-space: nowrap;
    }
    
    .nav-logout-wrapper {
        display: none; 
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-header {
        padding: 0 16px;
    }
    
    .admin-search {
        display: none; 
    }
    
    .content-body {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
