/* Admin Dashboard Styles - Professional Dark Themes */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Dashboard Layout */
.admin-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Header */
.dashboard-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-title i {
    color: #ff6b35;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Flash Messages */
.flash-messages {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.flash-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

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

/* Section Styles */
.portfolio-section,
.featured-section,
.about-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.section-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.selection-count {
    color: #ff6b35;
    font-weight: 500;
}

.category-assignment {
    margin-bottom: 1rem;
}

.category-assignment label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.category-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    /*background: rgba(255, 107, 53, 0.1);*/
    background: rgba(0, 0, 255, 0.1);
    /*border: 1px solid #ff6b35;*/
    border: 1px solid #35a9ff;
    /*color: #ff6b35;*/
    color: #35a9ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    /*font-size: 0.875rem;*/
    font-size: 0.625rem;
}

.category-btn:hover,
.category-btn.active {
    background: ##35a9ff;
    color: #ffffff;
}

.bulk-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    /*font-size: 0.875rem;*/
    font-size: 0.625rem;
}

.btn-primary {
    background: #ff6b35;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: rgba(103, 153, 194, 0.2);
    color: #6799c2;
    border: 1px solid #6799c2;
}

.btn-accent:hover {
    background: #6799c2;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-success {
    background: #22c55e;
    color: #ffffff;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-info {
    background: #3b82f6;
    color: #ffffff;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    /*font-size: 0.75rem;*/
    font-size: 0.625rem;
}

/* Image Grid */
.image-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #ff6b35;
}

.image-checkbox {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.image-select {
    /*width: 18px;
    height: 18px;*/
    width: 12px;
    height: 12px;
    accent-color: #ff6b35;
}

.image-preview {
    position: relative;
    /*aspect-ratio: 4/3;*/
    aspect-ratio: 3/2;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Performance optimizations for admin grid */
    max-width: 400px;
    max-height: 300px;
    image-rendering: optimizeSpeed;
    loading: lazy;
    decoding: async;
}

.image-card:hover .image-preview img {
    transform: scale(1.05);
}

.image-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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #ff6b35;
    transform: scale(1.1);
}

.image-info {
    padding: 1rem;
}

.image-title {
    /*font-size: 1rem;*/
    font-size: 0.625rem;
    font-weight: 500; /* from 600 to 500 */
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.image-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.category-tag {
    background: #ff6b35;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    /*font-size: 0.75rem;*/
    font-size: 0.625rem;
    font-weight: 500;
}

.featured-badge,
.background-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    /*font-size: 0.75rem;*/
    font-size: 0.50rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Featured button styles */
.btn-featured {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-featured:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-featured.active {
    background: #fbbf24;
    color: #000000;
    border: 1px solid #fbbf24;
}

.btn-featured.active:hover {
    background: #f59e0b;
}

/* Hero button styles */
.btn-hero {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.image-details {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Featured and About Sections */
.featured-content,
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.current-featured,
.current-background {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-featured img,
.current-background img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-info h3,
.background-info h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.featured-info p,
.background-info p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.no-featured,
.no-background {
    color: #888;
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #555;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #cccccc;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2d2d2d;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffffff;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

/* Upload Form */
.file-drop-zone {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.drop-zone-content i {
    font-size: 3rem;
    color: #555;
    margin-bottom: 1rem;
}

.drop-zone-content h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.drop-zone-content p {
    color: #888;
}

#fileInput {
    display: none;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Category Management */
.category-management {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-form h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.form-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-name {
    font-weight: 500;
    color: #ffffff;
}

.category-count {
    color: #888;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bulk-actions-bar {
        padding: 1rem;
    }
    
    .selection-controls,
    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-buttons {
        justify-content: flex-start;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .current-featured,
    .current-background {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .overlay-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Edit Form Styles */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-form label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.edit-form input[type="text"],
.edit-form textarea,
.edit-form select {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.875rem;
}

.edit-form input[type="text"]:focus,
.edit-form textarea:focus,
.edit-form select:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.1);
}

.edit-form textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff6b35;
    margin-right: 0.5rem;
}

.edit-form .form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    font-weight: normal;
}

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

/* Enhanced category styling */
.category-wildlife { background: #10b981; }
.category-landscape { background: #3b82f6; }
.category-portrait { background: #8b5cf6; }
.category-wedding { background: #ec4899; }
.category-commercial { background: #f59e0b; }
.category-miscellaneous { background: #f59e0b; }
.category-street { background: #6b7280; }
.category-nature { background: #059669; }
.category-flora { background: #16a34a; }
.category-other { background: #6b7280; }

/* Loading states */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* Improved responsive design for smaller screens */
@media (max-width: 640px) {
    .image-actions {
        grid-template-columns: 1fr;
    }
    
    .image-actions .btn {
        justify-content: center;
    }
    
    .bulk-actions-bar {
        padding: 1rem 0.5rem;
    }
    
    .category-buttons {
        gap: 0.25rem;
    }
    
    .category-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}


/* Fix select dropdown styling for dark theme */
select {
    background-color: #374151 !important;
    color: #f9fafb !important;
    border: 1px solid #4b5563 !important;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

select:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

select option {
    background-color: #374151 !important;
    color: #f9fafb !important;
    padding: 0.5rem;
}

/* Ensure modal select elements follow dark theme */
.modal select {
    background-color: #374151 !important;
    color: #f9fafb !important;
    border: 1px solid #4b5563 !important;
}

.modal select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}


/* Featured Image Story Section */
.featured-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-description {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.featured-content {
    margin-top: 1.5rem;
}

.current-featured {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.featured-image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.featured-description {
    color: #ccc;
    margin-bottom: 1rem;
    font-style: italic;
}

.featured-story {
    margin-bottom: 1rem;
}

.featured-story label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-story textarea {
    /*width: 100% !important;*/
    /*width: 600px !important;*/
    min-width: 900px !important;
    /*max-width: 600px !important;*/
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.75rem;
    box-sizing: border-box !important;
}

.featured-story textarea::placeholder {
    color: #888;
}

.featured-story textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.featured-meta {
    color: #666;
    font-size: 0.8rem;
}

.no-featured {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.no-featured-icon {
    font-size: 3rem;
    color: #555;
    margin-bottom: 1rem;
}

.no-featured h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-content {
    margin-top: 1.5rem;
}

.current-about {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.about-image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image-preview img {
    /*width: 100%;
    height: 200px;*/
    width: 25%;
    height: 25%;
    object-fit: cover;
    border-radius: 8px;
}

.about-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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-preview:hover .about-overlay {
    opacity: 1;
}

.about-info h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.about-bio {
    margin-bottom: 1rem;
}

.about-bio label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-bio textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.75rem;
    min-height: 120px;
}

.about-bio textarea::placeholder {
    color: #888;
}

.about-bio textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.about-meta {
    color: #666;
    font-size: 0.8rem;
}

.no-about {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.no-about-icon {
    font-size: 3rem;
    color: #555;
    margin-bottom: 1rem;
}

.no-about h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* About Upload Modal Specific Styles */
.about-form {
    margin-top: 1rem;
}

.about-form .form-group {
    margin-bottom: 1rem;
}

.about-form label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 120px;
}

.about-form textarea::placeholder {
    color: #888;
}

.about-form textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .current-featured,
    .current-about {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-image-preview img,
    .about-image-preview img {
        height: 150px;
    }
}


/* Set as Featured button styling */
.btn-warning {
    background: #fbbf24;
    color: #1f2937;
    font-weight: 600;
}

.btn-warning:hover {
    background: #f59e0b;
    color: #1f2937;
    transform: translateY(-1px);
}

.btn-warning i {
    color: #1f2937;
}


/* Text Formatting Toolbar Styles */
.formatting-toolbar {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.format-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

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

.format-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

.format-btn i {
    font-size: 0.9rem;
}

/* Adjust textarea styling to work with toolbar */
.featured-story textarea,
.about-bio textarea {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Ensure proper spacing for textareas with toolbars */
#featured-story,
#about-bio {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}


/* Increase About page textarea width */
#about-bio {
    width: 100% !important;
    /*min-width: 600px !important;
    max-width: 800px !important;*/
}

.about-bio textarea {
    width: 100% !important;
    /*min-width: 600px !important;
    max-width: 800px !important;*/
}

/* Ensure About section has enough space */
.about-info {
    width: 100%;
    /*max-width: 800px;*/
}

.current-about {
    display: block !important;
}

.about-content {
    display: block !important;
}



/* Admin User Info Dropdown */
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.admin-username {
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b35;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.admin-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}


/* Image Analysis Modal Styles */
.analysis-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.analysis-image-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.analysis-image-preview img {
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.analysis-image-preview h3 {
    margin-top: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.print-analysis h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.analysis-table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.analysis-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.analysis-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

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

.analysis-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.size-name {
    font-weight: 500;
    color: #ffffff;
}

.dpi-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.match-perfect {
    color: #4CAF50;
    font-weight: 500;
}

.match-crop {
    color: #FF9800;
    font-weight: 500;
}

.quality-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quality-badge.excellent {
    background: #4CAF50;
    color: white;
}

.quality-badge.good {
    background: #FF9800;
    color: white;
}

.quality-badge.poor {
    background: #f44336;
    color: white;
}

.quality-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.legend-item {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.legend-item.excellent {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.legend-item.good {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid #FF9800;
}

.legend-item.poor {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

/* Responsive adjustments for analysis modal */
@media (max-width: 768px) {
    .analysis-modal-content {
        width: 95%;
        margin: 2rem auto;
    }
    
    .analysis-stats {
        grid-template-columns: 1fr;
    }
    
    .quality-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .analysis-table {
        font-size: 0.8rem;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 0.5rem;
    }
}
