:root {
    --primary-color: #ff8fa3;
    --primary-dark: #ff4d6d;
    --secondary-color: #a0c4ff;
    --text-color: #2b2d42;
    --bg-color: #f7f9fc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', 'Nunito', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid #edf2f9;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    color: #555;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-menu li:hover {
    background: #fff0f3;
    color: var(--primary-dark);
}

.nav-menu li.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 143, 163, 0.3);
}

.nav-menu a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.main-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background: #fdfdfd;
    position: relative;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #fafcff;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #fcfcfc;
}

.data-table td img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

/* Status Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge.pending {
    background: #fff3cd;
    color: #856404;
}

.badge.approved,
.badge.adopted {
    background: #d4edda;
    color: #155724;
}

.badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge.available {
    background: #cce5ff;
    color: #004085;
}

/* Form Styles */
.glass-form-container {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.glass-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.vertical-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.vertical-form input,
.vertical-form select,
.vertical-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}

.vertical-form input:focus,
.vertical-form select:focus,
.vertical-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    border: none;
    background: var(--primary-dark);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--primary-color);
}

/* Buttons in Table */
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.action-btn:hover {
    opacity: 0.8;
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.btn-disabled {
    background: #ccc;
    color: white;
    cursor: not-allowed;
}

#loading {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    z-index: 1000;
}

.hidden {
    display: none !important;
}