/* Shared Components */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #23272f !important;
    border-radius: 4px !important;
    border: 2px dashed #333 !important;
    color: #e0e0e0 !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-info p {
    margin: 0 0 8px 0;
    color: #8b8b8b;
    font-size: 14px;
}

.stat-trend {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.stat-trend.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.stat-trend.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Analytics Styles */
.analytics-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
}

.analytics-section h3 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    font-size: 14px;
}

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

.analytics-item span {
    color: #8b8b8b;
}

.analytics-item strong {
    color: #fff;
    font-weight: 600;
}

/* Settings Styles */
.settings-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
}

.settings-section h3 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-item label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.setting-item small {
    color: #8b8b8b;
    font-size: 12px;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1e1e1e;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5865f2;
}

.checkbox-label span {
    color: #fff;
    font-size: 14px;
}

/* Notifications */
.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    transform: translateX(2px);
    border-left-width: 6px !important;
}

/* User Management Styles */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #444;
}

.user-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #444;
    flex-wrap: wrap;
}

.copy-id-btn {
    background: none;
    border: 1px solid #5865f2;
    color: #5865f2;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.copy-id-btn:hover {
    background: #5865f2;
    color: #fff;
}

.copy-id-btn:active {
    transform: scale(0.95);
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-status-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.user-last-active-inline {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: none;
}

.user-status.online {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.user-status.offline {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.user-status.premium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.user-status.bot {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.user-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.user-profile-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn.view {
    background: #17a2b8;
    color: #fff;
}

.action-btn.edit {
    background: #ffc107;
    color: #000;
}

.action-btn.delete {
    background: #dc3545;
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #5865f2;
    border-color: #5865f2;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #5865f2;
    border-color: #5865f2;
}

.pagination-info {
    color: #8b8b8b;
    font-size: 14px;
}

/* ✨ Bot Photo System - 3 Kutucuklu Sistem */
.profile-photos-section {
    margin: 20px 0;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 2px dashed #444;
}

.profile-photos-section h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 16px;
}

.section-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #8b8b8b;
}

.photo-slots {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.photo-slot {
    position: relative;
}

.photo-upload-area {
    width: 100%;
    height: 140px;
    border: 2px dashed #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
}

.photo-slot.main-profile .photo-upload-area {
    border-color: #28a745;
    background: #1a2e1a;
}

.photo-upload-area:hover {
    border-color: #007bff;
    background: #1a1e2e;
}

.upload-placeholder {
    text-align: center;
    color: #8b8b8b;
}

.upload-placeholder i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.photo-slot.main-profile .upload-placeholder i {
    color: #28a745;
}

.upload-placeholder span {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: #fff;
}

.upload-placeholder small {
    font-size: 12px;
    color: #6c757d;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.remove-photo:hover {
    opacity: 1;
    background: #b02a37;
}

/* Ana profil fotoğrafı seçildiğinde özel stil */
.photo-slot.has-main-photo .photo-upload-area {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* Ek fotoğraf badge'i */
.photo-slot.additional .photo-preview::before {
    content: '📸';
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 10px;
    z-index: 2;
}

/* Ana profil badge'i */
.photo-slot.main-profile .photo-preview::before {
    content: '👑 Profil';
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

/* Form grid override for bot forms */
.bot-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-slots {
        grid-template-columns: 1fr;
    }

    .bot-form .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Yeni Bot Modalı */
#create-bot-modal {
    max-width: 720px;
}

#create-bot-modal .modal-header {
    padding: 14px 16px;
}

#create-bot-modal .modal-header h3 {
    font-size: 16px;
}

#create-bot-modal .modal-body {
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#create-bot-modal .create-bot-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#create-bot-modal .quick-add-section,
#create-bot-modal .bot-form,
#create-bot-modal .profile-photos-section,
#create-bot-modal .edit-archive-section {
    margin: 0;
    padding: 18px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
}

#create-bot-modal .quick-add-section {
    background: rgba(255, 255, 255, 0.03);
}

#create-bot-modal .quick-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-bottom: 16px;
}

#create-bot-modal .quick-buttons .btn,
#create-bot-modal .bulk-section .btn {
    height: 38px;
}

#create-bot-modal .bulk-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding-top: 14px;
}

#create-bot-modal .quick-buttons .btn {
    flex: 1 1 0 !important;
    min-width: 0;
    justify-content: center;
}

#create-bot-modal .bulk-section label {
    white-space: nowrap;
}

#create-bot-modal .bulk-section select {
    flex: 1 1 0 !important;
    min-width: 0;
}

#create-bot-modal .quick-add-info {
    margin-top: 14px;
    font-size: 12px;
}

#create-bot-modal .create-bot-form .form-grid {
    gap: 18px;
    margin-bottom: 18px;
}

#create-bot-modal .create-bot-form .form-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#create-bot-modal .create-bot-form .form-group {
    margin-bottom: 0;
}

#create-bot-modal .create-bot-form .form-group input,
#create-bot-modal .create-bot-form .form-group select {
    height: 42px;
    padding: 10px 12px;
}

#create-bot-modal .create-bot-form .form-group textarea {
    min-height: 96px;
    padding: 12px;
    resize: vertical;
}

#create-bot-modal .create-bot-bio-group {
    margin-bottom: 0;
}

#create-bot-modal .char-count {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 11px;
    opacity: 0.75;
}

#create-bot-modal .photos-header,
#create-bot-modal .archive-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #444;
}

#create-bot-modal .photos-header > div,
#create-bot-modal .archive-header > div:first-child {
    min-width: 0;
}

#create-bot-modal .photo-slots {
    gap: 12px;
    margin: 0;
}

#create-bot-modal .photo-slot {
    min-height: 140px;
}

#create-bot-modal .photo-upload-area {
    height: 140px;
    border-radius: 10px;
}

#create-bot-modal .create-archive-section .archive-actions .btn {
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

#create-bot-modal .create-archive-grid {
    margin: 0;
}

#create-bot-modal .pending-archive-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    text-align: center;
    color: #9ca3af;
    background: linear-gradient(180deg, rgba(25, 32, 46, 0.92) 0%, rgba(18, 24, 36, 0.92) 100%);
    border: 1px dashed #3f4b60;
    border-radius: 12px;
}

#create-bot-modal .pending-archive-empty i {
    font-size: 26px;
    color: #6b7280;
}

#create-bot-modal .pending-archive-empty h4 {
    margin: 0;
    color: #fff;
}

#create-bot-modal .pending-archive-empty p {
    margin: 0;
    max-width: 340px;
}

#create-bot-modal .pending-archive-photo .photo-preview {
    height: 120px;
}

#create-bot-modal .pending-archive-photo .photo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#create-bot-modal .pending-archive-photo .photo-info strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#create-bot-modal .pending-archive-remove {
    top: 8px;
    right: 8px;
}

#create-bot-modal .create-cosmetics-container {
    margin: 0;
}

#create-bot-modal .create-cosmetics-container .cosmetics-section {
    margin-top: 0;
    border-radius: 12px;
}

#create-bot-modal .create-bot-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    justify-content: flex-end !important;
}

#create-bot-modal .create-bot-actions .btn {
    min-width: 148px;
}

@media (max-width: 768px) {
    #create-bot-modal .quick-buttons,
    #create-bot-modal .bulk-section {
        flex-wrap: wrap !important;
    }

    #create-bot-modal .quick-buttons .btn,
    #create-bot-modal .bulk-section select,
    #create-bot-modal .bulk-section .btn {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    #create-bot-modal .create-bot-actions {
        justify-content: stretch !important;
    }

    #create-bot-modal .create-bot-actions .btn {
        flex: 1 1 100%;
    }
}

/* ✨ Bot Edit System - İki Bölümlü Sistem - SİMETRİK */
.edit-bot-container {
    padding: 0;
}

#bot-edit-modal {
    max-width: 620px;
}

#bot-edit-modal .modal-header {
    padding: 14px 16px;
}

#bot-edit-modal .modal-body {
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#bot-edit-modal .modal-header h3 {
    font-size: 16px;
}

#bot-edit-modal .modal-close {
    width: 28px;
    height: 28px;
    font-size: 22px;
}

.bot-form {
    margin-bottom: 18px;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
}

.edit-photos-section,
.edit-archive-section {
    margin: 14px 0;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
}

.photos-header,
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.photos-header h4,
.archive-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    font-size: 13px;
    color: #8b8b8b;
    margin: 5px 0 0 0;
}

.archive-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Profil Fotoğrafları Grid (3 slot) - SİMETRİK */
.profile-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.profile-slot {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.profile-slot .photo-upload-area {
    width: 100%;
    height: 100%;
    border: 2px dashed #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1e1e1e;
}

.profile-slot.main-profile .photo-upload-area {
    border-color: #28a745;
    background: #1a2e1a;
}

.profile-slot.empty .photo-upload-area:hover {
    border-color: #007bff;
    background: #1a1e2e;
}

.profile-slot .photo-preview {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.profile-slot .photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-slot .photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.profile-slot .photo-badge.main {
    background: rgba(40, 167, 69, 0.95);
    color: white;
}

.profile-slot .photo-badge:not(.main) {
    background: rgba(0, 123, 255, 0.9);
    color: white;
}

.profile-slot .photo-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;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.profile-slot:hover .photo-overlay {
    opacity: 1;
    pointer-events: auto;
}

.profile-slot .photo-overlay .btn {
    pointer-events: auto;
}

/* Arşiv Fotoğrafları Grid - SİMETRİK */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0;
    /* max-height ve overflow kaldırıldı - ana container'da scroll var */
    padding: 6px 0;
}

.archive-photo-item {
    position: relative;
    border: 1px solid #555;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.archive-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.archive-photo-item .photo-preview {
    position: relative;
    height: 110px;
    overflow: hidden;
}

.archive-photo-item .photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.archive-photo-item .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.archive-photo-item:hover .photo-overlay {
    opacity: 1;
    pointer-events: auto;
}

.archive-photo-item .photo-overlay .btn {
    pointer-events: auto;
}

.archive-photo-item .photo-info {
    padding: 8px;
    background: #1e1e1e;
    border-top: 1px solid #555;
}

.archive-photo-item .photo-info small {
    color: #8b8b8b;
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Elemanları - SİMETRİK Yükseklik */
.edit-bot-container .form-group input,
.edit-bot-container .form-group select {
    height: 38px;
    padding: 8px 10px;
    font-size: 13px;
}

.edit-bot-container .form-group textarea {
    min-height: 72px;
    padding: 10px;
    font-size: 13px;
    resize: vertical;
}

.edit-bot-container .form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #444;
}

.edit-bot-container .form-actions .btn {
    min-width: 140px;
}

/* Button Overrides for Photo Actions */
.profile-slot .btn,
.archive-photo-item .btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8b8b8b;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #555;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: #fff;
}

.empty-state p {
    margin: 0 0 15px 0;
    font-size: 14px;
}

/* Error States */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.error-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-state h4 {
    margin: 0 0 10px 0;
    color: #dc3545;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #8b8b8b;
}

.loading-state i {
    font-size: 24px;
    margin-bottom: 15px;
    color: #007bff;
}


@media (max-width: 768px) {
    .profile-slots-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-slot {
        height: 140px;
    }

    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .photos-header,
    .archive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .edit-bot-container .form-actions {
        flex-direction: column;
    }

    .edit-bot-container .form-actions .btn {
        min-width: auto;
        width: 100%;
    }

    .photo-count-badge {
        top: -3px;
        right: -3px;
        padding: 1px 4px;
        font-size: 9px;
        min-width: 16px;
        height: 16px;
    }

    .photo-count-badge i {
        font-size: 7px;
    }

    .photo-count-badge span {
        font-size: 9px;
    }
}

/* User Actions Buttons */
.btn-logout,
.btn-refresh {
    background: none !important;
    border: none !important;
    color: #666 !important;
    padding: 5px 8px !important;
    margin-left: 5px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-logout:hover {
    background: #f5f5f5 !important;
    color: #dc3545 !important;
}

.btn-refresh:hover {
    background: #f5f5f5 !important;
    color: #007bff !important;
}

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

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

    to {
        transform: rotate(360deg);
    }
}

/* Dark theme için */
body.dark-theme .btn-logout:hover {
    background: #333 !important;
    color: #dc3545 !important;
}

body.dark-theme .btn-refresh:hover {
    background: #333 !important;
    color: #007bff !important;
}

/* Premium Features Styling */
.form-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.form-section h3 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #1e1e1e;
    border-radius: 6px;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.feature-checkbox:hover {
    background: #252525;
    border-color: #5865f2;
}

.feature-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #5865f2;
}

.feature-checkbox label {
    color: #e0e0e0;
    font-size: 14px;
    gap: 15px;
    margin-bottom: 15px;
}

.photo-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    border: 1px solid #444;
}

.photo-item .photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.photo-item .photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    font-size: 11px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.photo-item .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 3;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* User Edit Modal Styles */
.user-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #5865f2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-summary h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #fff;
}

.user-info-summary .badges {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-id {
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
}

.badge-premium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.form-section.full-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.user-edit-modal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.user-edit-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.user-edit-section-grid > .form-section,
.user-edit-summary-band,
.user-photo-management-band {
    margin-bottom: 0;
}

.user-edit-section-grid > .form-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.user-edit-summary-band {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
}

.user-edit-summary-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-edit-summary-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.user-edit-summary-label {
    display: inline-flex;
    align-items: center;
    color: #8ea0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-edit-summary-band h3 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.1;
}

.user-edit-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-content: flex-start;
    max-width: 420px;
}

.user-edit-summary-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #cfd3dc;
    font-size: 12px;
}

.user-photo-management-band {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 760px;
    padding-top: 20px;
    margin: 8px auto 0;
}

.user-photo-card-header {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
}

.user-photo-card-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.user-photo-card-title h4 {
    margin: 0;
}

.user-photo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
}

.user-photo-strip-empty {
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #949aa6;
    text-align: center;
}

.user-photo-tile {
    width: 150px;
    max-width: 150px;
    aspect-ratio: 1 / 1;
    padding-bottom: 0;
    flex-shrink: 0;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: #20232d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-photo-tile.is-profile-photo {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.22);
}

.user-photo-tile .photo-preview {
    border-radius: inherit;
    overflow: hidden;
}

.user-photo-tile .photo-overlay {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10px;
    gap: 0;
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.78) 0%, rgba(7, 10, 16, 0.22) 54%, rgba(7, 10, 16, 0) 100%);
}

.user-photo-action-bar {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-photo-tile:hover .user-photo-action-bar,
.user-photo-tile:focus-within .user-photo-action-bar {
    opacity: 1;
    transform: translateY(0);
}

.photo-action-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 20, 27, 0.92);
    color: #eef2ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.photo-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(92, 103, 255, 0.94);
    color: #fff;
}

.photo-action-btn.is-danger:hover {
    background: rgba(220, 53, 69, 0.94);
}

.user-photo-tile .photo-info {
    min-height: 34px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, rgba(4, 6, 10, 0.76) 44%, rgba(4, 6, 10, 0.92) 100%);
}

.user-photo-tile .photo-info small,
.user-photo-tile .photo-info span {
    font-size: 11px;
    font-weight: 600;
}

.user-photo-tile .photo-info small {
    letter-spacing: 0;
}

.photo-badge,
.photo-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

.photo-badge {
    background: rgba(255, 215, 0, 0.16);
    color: #ffe38a;
}

@media (max-width: 1024px) {
    .user-edit-summary-band {
        flex-direction: column;
    }

    .user-edit-section-grid {
        grid-template-columns: 1fr;
    }

    .user-edit-summary-meta {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .user-edit-summary-band {
        padding: 18px;
    }

    .user-edit-summary-band h3 {
        font-size: 24px;
    }

    .user-photo-tile {
        width: 112px;
        max-width: 112px;
    }
}
