background: rgb(0, 0, 0);
/* Upload Area */
.upload-area {
    padding:20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.upload-area:hover, .upload-area.dragover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.upload-content {
    text-align: center;
    padding:20px;
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Preview Container */
.preview-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 992px) {
    .content-wrapper {
        padding: 0 3rem;
    }
}

#previewImage {
    max-height: min(70vh, 600px);
    width: auto;
    margin: 0;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    
    .upload-area {
        min-height: 150px;
    }
    
    .preview-container {
        max-width: 100%;
    }
    
    #previewImage {
        max-width: 100%;
        height: auto;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Hat Grid */
.hat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
    max-height: min(70vh, 500px);
    overflow-y: auto;
    padding: 0.75rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .hat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hat-item {
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    aspect-ratio: 1;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.hat-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.hat-item.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.hat-item img {
    width: 1.75em;
    height: 1.75em;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Search input */
.hat-search {
    margin-bottom: 0.75rem;
}

.hat-search input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hat-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
.hat-grid::-webkit-scrollbar {
    width: 4px;
}

.hat-grid::-webkit-scrollbar-track {
    background: transparent;
}

.hat-grid::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.hat-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Modal Hat Upload Area */
#hatDropZone {
    min-height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#hatDropZone:hover, #hatDropZone.dragover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Footer Styles */
body {
    padding-bottom: 60px;
    background: rgb(18, 18, 18) !important;
}

footer {
    backdrop-filter: blur(8px);
    background: rgb(18, 18, 18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Toast Styling */
.toast {
    background: rgb(0, 0, 0) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.toast-body {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #000;
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #000;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Card Styles */
.card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8) !important;
    height: 100%;
}

.row.g-4 > [class*="col"] {
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.9) !important;
}

.modal-content {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
}

.modal-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
}

.modal-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
}

.custom-alert {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.modal-body {
    padding: 1.5rem;
}

#hatDropZone {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

#hatDropZone:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* Form Styles */
.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
    color: #fff;
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Admin Table Styles */
.table {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.table-dark {
    background-color: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
}

.table-dark thead th {
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 1rem;
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.table-dark tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-hover tbody tr:hover {
    --bs-table-hover-color: rgba(255, 255, 255, 1);
}

/* Admin specific styles */
.admin-action-btn {
    margin: 0 0.25rem;
}

.btn-outline-light.approve:hover {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
}

.btn-outline-light.reject:hover {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

.hat-preview-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hat-preview-wrapper img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.alert {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.alert .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 0.75rem;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* About Section Styles */
#aboutContent {
    background: rgba(0, 0, 0, 0.4);
}

[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.2s ease;
}

[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

#aboutContent ul {
    list-style-type: none;
    padding-left: 1rem;
}

#aboutContent ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

#aboutContent ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
}

.alert-success {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(25, 135, 84, 0.2) !important;
    border-color: rgba(25, 135, 84, 0.3);
}

.alert-danger {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.3);
}