:root {
    --primary-color: #6a11cb; /* Deep Purple */
    --secondary-color: #2575fc; /* Bright Blue */
    --background-color: #f0f2f5; /* Light Gray */
    --text-color: #333;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);
    --blur-effect: blur(10px);
    --font-family: 'Poppins', sans-serif;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

html {
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
    background-attachment: fixed;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 80px;
    overflow: hidden;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#company-logo {
    height: 50px;
    width: auto;
    margin-right: 1rem;
    display: block;
    border-radius: 8px;
}

.text-logo {
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 1rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    padding: 0.5rem;
}

header h1 {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    border: 1px solid transparent;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Main Layout */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Glass Container Base */
.glass-container {
    background: var(--card-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    color: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
}

.glass-container h2 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button System */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.submit-btn {
    @extend .btn-base;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 10px rgba(37, 117, 252, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    @extend .btn-base;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.delete-confirm-btn {
    @extend .btn-base;
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    padding: 0.8rem 1.5rem;
}

.delete-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Role Selection Styles */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.role-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.role-card:hover::before {
    opacity: 1;
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.role-card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.role-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.role-card .submit-btn {
    width: 100%;
    margin-top: auto;
}

/* Tab System */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex: 1;
    justify-content: center;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--secondary-color);
    background: rgba(37, 117, 252, 0.1);
    font-weight: 600;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-card span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-card strong {
    font-size: 2.2rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}

/* Card Grids */
.admin-quest-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Admin Quest Cards */
.admin-quest-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.admin-quest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-quest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-quest-card:hover::before {
    opacity: 1;
}

/* Agent Cards */
.bounty-card,
.reward-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.bounty-card::before,
.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bounty-card:hover,
.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.bounty-card:hover::before,
.reward-card:hover::before {
    opacity: 1;
}

.bounty-card h3,
.reward-card h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.bounty-card p,
.reward-card p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.bounty-card .details,
.reward-card .details {
    margin-bottom: 1rem;
}

.bounty-card .details span,
.reward-card .details span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.bounty-card .details strong,
.reward-card .details strong {
    font-weight: 600;
    color: #fff;
    margin-right: 0.5rem;
}

/* Points Badge */
.points-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(37, 117, 252, 0.3);
    display: inline-block;
}

.points-badge::after {
    content: ' pts';
    opacity: 0.9;
    font-size: 0.8rem;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    display: inline-block;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.status-badge.inactive {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.status-badge.denied {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.4);
}

/* Form System */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #1565C0 !important;
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    color: #666 !important;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-style: italic;
}

.required {
    color: var(--error-color);
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #1976D2 !important;
    border-radius: 10px;
    background-color: #ffffff !important;
    color: #1565C0 !important;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 500 !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background-color: #f8f9ff !important;
    border-color: #1565C0 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.15);
    transform: translateY(-1px);
    color: #0d47a1 !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.form-group select option {
    background: #fff;
    color: #333;
    padding: 0.5rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(37, 117, 252, 0.4);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '?';
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Filter Controls */
.filter-controls {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.4rem;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.visible .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Notification System */
.notification-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white !important;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.3s ease, visibility 0s linear 0.3s, opacity 0.3s ease;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 300px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
}

.notification-toast * {
    color: white !important;
}

.notification-toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
}

.notification-toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white !important;
}

.notification-toast.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
}

.notification-toast.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
}

.notification-toast.visible {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Quest Action Buttons */
.quest-action-btn {
    width: 100%;
    margin-top: auto;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

.claimed {
    background: rgba(156, 163, 175, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon Helpers */
.plus-icon {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.warning {
    color: var(--warning-color) !important;
}

.error {
    color: var(--error-color) !important;
}

.success {
    color: var(--success-color) !important;
}

/* Transaction Card Specific Styles */
.transaction-card {
    position: relative;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.transaction-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.transaction-points {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
}

.points-positive {
    color: #10b981;
    background: none;
}

.points-negative {
    color: #ef4444;
    background: none;
}

/* Manager Dashboard Specific Styles */

/* Submissions Sections */
.submissions-section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.pending-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
    border-color: #ff9800;
    border-width: 2px;
}

.processed-section {
    background: linear-gradient(135deg, #f0f8f0 0%, #ffffff 100%);
    border-color: #4CAF50;
}

.no-pending {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    border-color: #4CAF50;
    text-align: center;
    padding: 40px;
}

.submissions-section h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #333;
}

.count-badge {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.count-badge.pending {
    background: #ff9800;
    animation: pulse 2s infinite;
}

.count-badge.processed {
    background: #4CAF50;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.section-description {
    margin: 10px 0 20px 0;
    color: #666;
    font-style: italic;
}

/* Pending Submissions Grid */
.submissions-grid.pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Pending Submission Cards */
.submission-card.pending-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.submission-card.pending-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #ff9800;
}

.submission-card.pending-card.processing {
    opacity: 0.7;
    pointer-events: none;
}

.quest-card {
    border-left: 6px solid #2196F3;
}

.prize-card {
    border-left: 6px solid #9C27B0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.card-icon {
    font-size: 1.5rem;
}

.card-type {
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

.card-points {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.card-points.has-points {
    background: #e8f5e8;
    color: #2e7d32;
}

.card-points.no-points {
    background: #ffe8e8;
    color: #d32f2f;
}

.card-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.3;
}

.card-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-row .label {
    font-weight: bold;
    color: #666;
}

.detail-row .value {
    color: #333;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.approve-btn {
    background: #4CAF50;
    color: white;
}

.approve-btn:hover {
    background: #45a049;
    transform: scale(1.02);
}

.decline-btn {
    background: #f44336;
    color: white;
}

.decline-btn:hover {
    background: #da190b;
    transform: scale(1.02);
}

.quick-actions {
    display: flex;
    gap: 5px;
}

.quick-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Processed Submissions Table */
.filter-buttons.processed-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-btn.active,
.filter-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.processed-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.processed-submissions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.processed-submissions-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.processed-submissions-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.processed-row:nth-child(even) {
    background: #fafafa;
}

.processed-row:hover {
    background: #f0f8ff;
}

.type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.type-badge.quest {
    background: #e3f2fd;
    color: #1976d2;
}

.type-badge.prize {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.status-badge.status-approved {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.status-declined {
    background: #ffebee;
    color: #c62828;
}

.item-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-name {
    font-weight: bold;
    color: #333;
}

.points.has-points {
    color: #2e7d32;
    font-weight: bold;
}

.points.no-points {
    color: #d32f2f;
    font-style: italic;
}

.notes {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-btn {
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.table-btn:hover {
    background: #f5f5f5;
}

.view-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.edit-btn:hover {
    background: #fff3e0;
    border-color: #ff9800;
}

/* Processing States */
.processing-message {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 10px 0;
}

/* Decline Modal Styles */
.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #d32f2f;
    font-size: 1.3rem;
}

.modal-body {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.decline-confirm-btn {
    background: #f44336;
    color: white;
}

.decline-confirm-btn:hover {
    background: #da190b;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo-container {
        flex: 1;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    #company-logo {
        height: 40px;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    header nav ul {
        gap: 0.5rem;
    }
    
    header nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .user-info {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .admin-quest-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .role-selection {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }
    
    header {
        min-height: 100px;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .points-badge::after {
        content: '';
    }
}

/* Fix for better header text contrast */
@media (prefers-color-scheme: dark) {
    header h1 {
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    header nav ul li a {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .user-info {
        color: #ffffff;
    }
}