/* F7 GAME CAFE - ADMIN PANEL CSS */

/* ===== GENEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk paleti - Sarı & Siyah tema */
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFA500;
    --dark-yellow: #DAA520;
    --primary-black: #1a1a1a;
    --secondary-black: #2d2d2d;
    --light-black: #404040;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-orange: #fd7e14;
    
    /* Gölgeler */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    
    /* Geçiş animasyonları */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background: #f8f9fa;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== ADMIN NAVBAR ===== */
.admin-navbar {
    background: var(--primary-black);
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow-medium);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.admin-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: none;
}

.admin-nav-left {
    display: flex;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo .logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-black);
}

.admin-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.admin-title span {
    font-size: 0.8rem;
    color: var(--primary-yellow);
    font-weight: 500;
}

.admin-nav-right {
    display: flex;
    align-items: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user > span {
    color: var(--white);
    font-weight: 500;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--white);
    box-shadow: var(--shadow-light);
    z-index: 999;
    overflow-y: auto;
    transition: transform var(--transition-medium);
}

/* Mobil cihazlarda sidebar gizli başlar */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%) !important;
        z-index: 1001 !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3) !important;
        transition: transform 0.3s ease !important;
    }
    
    .admin-sidebar.active {
        transform: translateX(0) !important;
    }
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--light-black);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-black);
}

.admin-menu a.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 600;
}

.admin-menu i {
    width: 20px;
    text-align: center;
}

/* ===== ADMIN MAIN CONTENT ===== */
.admin-main {
    margin-left: 250px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== ADMIN HEADER ===== */
.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.admin-header p {
    color: var(--light-black);
    font-size: 1.1rem;
}

/* ===== BUTONLAR ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-primary:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger-red);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: var(--warning-orange);
    color: var(--white);
}

.btn-warning:hover {
    background: #e8590c;
}

.btn-secondary {
    background: var(--secondary-black);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--light-black);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== KARTLAR ===== */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-header h3 i {
    color: var(--primary-yellow);
}

.card-body {
    padding: 0;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    border-left: 4px solid var(--primary-yellow);
}

.stat-card.success {
    border-left-color: var(--success-green);
}

.stat-card.danger {
    border-left-color: var(--danger-red);
}

.stat-card.warning {
    border-left-color: var(--warning-orange);
}

.stat-card.maintenance {
    border-left-color: #6c757d;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-black);
}

.stat-card.success .stat-icon {
    background: var(--success-green);
    color: var(--white);
}

.stat-card.danger .stat-icon {
    background: var(--danger-red);
    color: var(--white);
}

.stat-card.warning .stat-icon {
    background: var(--warning-orange);
    color: var(--white);
}

.stat-card.maintenance .stat-icon {
    background: #6c757d;
    color: var(--white);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--light-black);
    font-weight: 500;
    margin: 0;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-empty {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.status-occupied {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.status-reserved {
    background: rgba(255, 193, 7, 0.1);
    color: var(--dark-yellow);
    border: 1px solid var(--dark-yellow);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--light-black);
    font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .admin-hamburger {
        display: block !important;
    }
    
    .admin-sidebar {
        transform: translateX(-100%) !important;
        transition: transform var(--transition-medium);
        z-index: 1001 !important;
    }
    
    .admin-sidebar.active {
        transform: translateX(0) !important;
    }
    
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .admin-main {
        padding: 20px 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-nav-container {
        padding: 0 15px;
    }
    
    .admin-user > span {
        display: none;
    }
    
    .admin-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}


/* ===== DASHBOARD SPECIFIC ===== */
.stat-trend,
.stat-percentage {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-trend.positive {
    color: var(--success-green);
}

.stat-percentage {
    color: var(--primary-yellow);
}

/* DASHBOARD CONTENT */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* QUICK ACTIONS */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-group {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid var(--primary-yellow);
}

.action-group h4 {
    margin: 0 0 10px 0;
    color: var(--primary-black);
    font-size: 1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* DEVICE TYPE STATS */
.device-type-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.device-type-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.device-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.device-type-name {
    font-weight: 600;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-type-count {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.device-type-breakdown {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.status-item {
    font-size: 0.85rem;
    font-weight: 500;
}

.status-item.success {
    color: var(--success-green);
}

.status-item.danger {
    color: var(--danger-red);
}

.status-item.warning {
    color: var(--warning-orange);
}

/* ACTIVITY LIST */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.status-occupied {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
}

.activity-icon.status-emptied {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
}

.activity-icon.status-reserved {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-orange);
}

.activity-content p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--primary-black);
}

.activity-content small {
    color: var(--light-black);
    font-size: 0.8rem;
}

/* CAMPAIGN LIST */
.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.campaign-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-yellow);
}

.campaign-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
}

.campaign-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--light-black);
    line-height: 1.4;
}

/* NO DATA */
.no-data {
    text-align: center;
    color: var(--light-black);
    font-style: italic;
    padding: 20px;
}

/* ===== CIHAZ YÖNETİMİ ===== */
.devices-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.devices-left,
.devices-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.device-type-card {
    margin-bottom: 0;
}

.device-count {
    font-size: 0.9rem;
    color: var(--light-black);
    font-weight: 400;
    margin-left: 10px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.device-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #dee2e6;
    transition: var(--transition-medium);
}

.device-item.status-empty {
    border-left-color: var(--success-green);
    background: rgba(40, 167, 69, 0.05);
}

.device-item.status-occupied {
    border-left-color: var(--danger-red);
    background: rgba(220, 53, 69, 0.05);
}

.device-item.status-reserved {
    border-left-color: var(--warning-orange);
    background: rgba(255, 193, 7, 0.05);
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.device-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
}

.device-info {
    margin-bottom: 15px;
}

.device-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.status-select {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

/* ===== KAMPANYA YÖNETİMİ ===== */
.campaigns-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.campaigns-left,
.campaigns-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campaign-item.active {
    border-left-color: var(--success-green);
    background: rgba(40, 167, 69, 0.05);
}

.campaign-item.inactive {
    border-left-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.campaign-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    flex: 1;
}

.status-badge.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.status-badge.status-inactive {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.campaign-content {
    margin-bottom: 20px;
}

.campaign-content p {
    margin: 0 0 10px 0;
    color: var(--light-black);
    line-height: 1.6;
}

.campaign-date {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.campaign-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== AYARLAR ===== */
.settings-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--light-black);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
}

.tab-btn:hover {
    color: var(--primary-black);
    background: rgba(255, 215, 0, 0.1);
}

.tab-btn.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-black);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.price-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-yellow);
}

.price-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.price-content label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 10px;
    display: block;
}

.price-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input input {
    flex: 1;
    margin: 0;
}

.price-unit {
    font-weight: 600;
    color: var(--light-black);
    font-size: 14px;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--primary-black);
}

.info-value {
    color: var(--light-black);
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* ===== RESPONSIVE FOR ADMIN PAGES ===== */
@media (max-width: 1200px) {
    .dashboard-content,
    .devices-content,
    .campaigns-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: 1fr;
    }
    
    .device-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .campaign-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .campaign-actions {
        justify-content: center;
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/* ===== DUYURU YÖNETİMİ ===== */
.announcements-content {
    display: grid;
    grid-template-columns: minmax(350px, 450px) 1fr;
    gap: 30px;
}

.announcements-left {
    min-width: 0; /* Grid overflow fix */
}

.announcements-left .card {
    overflow: hidden;
}

.announcement-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Tarih input'ları için özel stil */
.form-group input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #dee2e6;
    transition: var(--transition-medium);
}

.announcement-item.active {
    border-left-color: var(--success-green);
}

.announcement-item.inactive {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.announcement-item.type-info {
    border-left-color: var(--primary-yellow);
}

.announcement-item.type-campaign {
    border-left-color: var(--success-green);
}

.announcement-item.type-warning {
    border-left-color: var(--warning-orange);
}

.announcement-item.type-urgent {
    border-left-color: var(--danger-red);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.announcement-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-title-row h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
}

.type-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.type-info {
    background: rgba(255, 215, 0, 0.15);
    color: #b8860b;
}

.type-badge.type-campaign {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success-green);
}

.type-badge.type-warning {
    background: rgba(253, 126, 20, 0.15);
    color: var(--warning-orange);
}

.type-badge.type-urgent {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-red);
}

.announcement-content {
    margin-bottom: 15px;
}

.announcement-content p {
    margin: 0 0 10px 0;
    color: var(--light-black);
    line-height: 1.6;
}

.announcement-dates {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.announcement-dates small {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .announcements-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .announcement-actions {
        justify-content: center;
    }
}


/* ===== ADMIN DARK MODE ===== */

/* Dark Mode Toggle Button */
.admin-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-right: 15px;
}

.admin-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-yellow);
}

.admin-theme-toggle i {
    font-size: 16px;
    color: var(--primary-yellow);
}

/* Dark Mode Styles - Arka plan koyu, kartlar beyaz, yazılar siyah */
html.dark-mode body.admin-page,
body.admin-page.dark-mode {
    background: #121212 !important;
    color: #333;
}

/* Admin Main Area - Dark Mode */
html.dark-mode .admin-main,
body.admin-page.dark-mode .admin-main {
    background: #121212 !important;
}

html.dark-mode .admin-container,
body.admin-page.dark-mode .admin-container {
    background: transparent;
}

html.dark-mode .admin-sidebar,
body.admin-page.dark-mode .admin-sidebar {
    background: #0a0a0a;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
}

/* Navbar dark mode */
html.dark-mode .admin-navbar,
body.admin-page.dark-mode .admin-navbar {
    background: #0a0a0a;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

html.dark-mode .admin-menu a,
body.admin-page.dark-mode .admin-menu a {
    color: #e0e0e0;
}

html.dark-mode .admin-menu a:hover,
body.admin-page.dark-mode .admin-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--white);
}

html.dark-mode .admin-menu a.active,
body.admin-page.dark-mode .admin-menu a.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

html.dark-mode .admin-header h1,
body.admin-page.dark-mode .admin-header h1 {
    color: var(--white) !important;
}

html.dark-mode .admin-header p,
body.admin-page.dark-mode .admin-header p {
    color: #b0b0b0 !important;
}

/* Stats grid başlıkları */
html.dark-mode .stats-grid + .dashboard-content h3,
body.admin-page.dark-mode .stats-grid + .dashboard-content h3 {
    color: var(--white) !important;
}

/* Kartlar beyaz kalacak, yazılar siyah */
html.dark-mode .card,
body.admin-page.dark-mode .card {
    background: var(--white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Kart içindeki tüm yazılar siyah */
html.dark-mode .card *,
body.admin-page.dark-mode .card * {
    color: var(--primary-black) !important;
}

/* Butonların renkleri korunsun */
html.dark-mode .card .btn-primary,
body.admin-page.dark-mode .card .btn-primary {
    color: var(--primary-black) !important;
    background: var(--primary-yellow) !important;
}

html.dark-mode .card .btn-danger,
body.admin-page.dark-mode .card .btn-danger {
    color: var(--white) !important;
    background: var(--danger-red) !important;
}

html.dark-mode .card .btn-success,
body.admin-page.dark-mode .card .btn-success {
    color: var(--white) !important;
    background: var(--success-green) !important;
}

html.dark-mode .card .btn-warning,
body.admin-page.dark-mode .card .btn-warning {
    color: var(--primary-black) !important;
    background: var(--warning-orange) !important;
}

html.dark-mode .card .btn-secondary,
body.admin-page.dark-mode .card .btn-secondary {
    color: var(--white) !important;
    background: var(--light-black) !important;
}

html.dark-mode .card-header,
body.admin-page.dark-mode .card-header {
    border-bottom-color: #e9ecef;
}

html.dark-mode .card-header h3,
body.admin-page.dark-mode .card-header h3 {
    color: var(--primary-black);
}

html.dark-mode .stat-card,
body.admin-page.dark-mode .stat-card {
    background: var(--white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Stat card içindeki tüm yazılar siyah */
html.dark-mode .stat-card *,
body.admin-page.dark-mode .stat-card * {
    color: var(--primary-black) !important;
}

html.dark-mode .stat-content h3,
body.admin-page.dark-mode .stat-content h3 {
    color: var(--primary-black) !important;
}

html.dark-mode .stat-content p,
body.admin-page.dark-mode .stat-content p {
    color: var(--light-black);
}

/* Form Elements Dark Mode - Beyaz arka plan, siyah yazı */
html.dark-mode .form-group label,
body.admin-page.dark-mode .form-group label {
    color: var(--primary-black);
}

html.dark-mode .form-group input,
html.dark-mode .form-group select,
html.dark-mode .form-group textarea,
body.admin-page.dark-mode .form-group input,
body.admin-page.dark-mode .form-group select,
body.admin-page.dark-mode .form-group textarea {
    background: var(--white);
    border-color: #dee2e6;
    color: var(--primary-black);
}

html.dark-mode .form-group input:focus,
html.dark-mode .form-group select:focus,
html.dark-mode .form-group textarea:focus,
body.admin-page.dark-mode .form-group input:focus,
body.admin-page.dark-mode .form-group select:focus,
body.admin-page.dark-mode .form-group textarea:focus {
    border-color: var(--primary-yellow);
    background: var(--white);
}

html.dark-mode .form-group input::placeholder,
body.admin-page.dark-mode .form-group input::placeholder {
    color: #6c757d;
}

html.dark-mode .form-group small,
body.admin-page.dark-mode .form-group small {
    color: var(--light-black);
}

/* Device Items Dark Mode - Beyaz arka plan */
html.dark-mode .device-item,
body.admin-page.dark-mode .device-item {
    background: #f8f9fa;
}

html.dark-mode .device-item.status-empty,
body.admin-page.dark-mode .device-item.status-empty {
    background: rgba(40, 167, 69, 0.1);
}

html.dark-mode .device-item.status-occupied,
body.admin-page.dark-mode .device-item.status-occupied {
    background: rgba(220, 53, 69, 0.1);
}

html.dark-mode .device-item.status-reserved,
body.admin-page.dark-mode .device-item.status-reserved {
    background: rgba(255, 193, 7, 0.1);
}

html.dark-mode .device-item.status-maintenance,
body.admin-page.dark-mode .device-item.status-maintenance {
    background: rgba(108, 117, 125, 0.1);
}

html.dark-mode .device-header h4,
body.admin-page.dark-mode .device-header h4 {
    color: var(--primary-black);
}

html.dark-mode .device-info p,
body.admin-page.dark-mode .device-info p {
    color: var(--light-black);
}

html.dark-mode .status-select,
body.admin-page.dark-mode .status-select {
    background: var(--white);
    border-color: #dee2e6;
    color: var(--primary-black);
}

/* Action Groups Dark Mode */
html.dark-mode .action-group,
body.admin-page.dark-mode .action-group {
    background: #f8f9fa;
}

html.dark-mode .action-group h4,
body.admin-page.dark-mode .action-group h4 {
    color: var(--primary-black);
}

/* Device Type Stats Dark Mode */
html.dark-mode .device-type-item,
body.admin-page.dark-mode .device-type-item {
    background: #f8f9fa;
}

html.dark-mode .device-type-name,
body.admin-page.dark-mode .device-type-name {
    color: var(--primary-black);
}

/* Activity Items Dark Mode */
html.dark-mode .activity-item,
body.admin-page.dark-mode .activity-item {
    background: #f8f9fa;
}

html.dark-mode .activity-content p,
body.admin-page.dark-mode .activity-content p {
    color: var(--primary-black);
}

html.dark-mode .activity-content small,
body.admin-page.dark-mode .activity-content small {
    color: var(--light-black);
}

/* Campaign Items Dark Mode */
html.dark-mode .campaign-item,
body.admin-page.dark-mode .campaign-item {
    background: #f8f9fa;
}

html.dark-mode .campaign-item h4,
body.admin-page.dark-mode .campaign-item h4 {
    color: var(--primary-black);
}

html.dark-mode .campaign-item p,
html.dark-mode .campaign-content p,
body.admin-page.dark-mode .campaign-item p,
body.admin-page.dark-mode .campaign-content p {
    color: var(--light-black);
}

html.dark-mode .campaign-header h4,
body.admin-page.dark-mode .campaign-header h4 {
    color: var(--primary-black);
}

/* Announcement Items Dark Mode */
html.dark-mode .announcement-item,
body.admin-page.dark-mode .announcement-item {
    background: #f8f9fa;
}

html.dark-mode .announcement-title-row h4,
body.admin-page.dark-mode .announcement-title-row h4 {
    color: var(--primary-black);
}

html.dark-mode .announcement-content p,
body.admin-page.dark-mode .announcement-content p {
    color: var(--light-black);
}

/* Settings Dark Mode */
html.dark-mode .settings-tabs,
body.admin-page.dark-mode .settings-tabs {
    border-bottom-color: #dee2e6;
}

html.dark-mode .tab-btn,
body.admin-page.dark-mode .tab-btn {
    color: var(--light-black);
}

html.dark-mode .tab-btn:hover,
body.admin-page.dark-mode .tab-btn:hover {
    color: var(--primary-black);
    background: rgba(255, 215, 0, 0.1);
}

html.dark-mode .tab-btn.active,
body.admin-page.dark-mode .tab-btn.active {
    color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

html.dark-mode .price-item,
body.admin-page.dark-mode .price-item {
    background: #f8f9fa;
}

html.dark-mode .price-content label,
body.admin-page.dark-mode .price-content label {
    color: var(--primary-black);
}

html.dark-mode .checkbox-label,
body.admin-page.dark-mode .checkbox-label {
    color: var(--primary-black);
}

html.dark-mode .info-item,
body.admin-page.dark-mode .info-item {
    border-bottom-color: #dee2e6;
}

html.dark-mode .info-label,
body.admin-page.dark-mode .info-label {
    color: var(--primary-black);
}

html.dark-mode .info-value,
body.admin-page.dark-mode .info-value {
    background: #f8f9fa;
    color: var(--light-black);
}

html.dark-mode .system-info,
body.admin-page.dark-mode .system-info {
    color: var(--light-black);
}

/* No Data Dark Mode */
html.dark-mode .no-data,
body.admin-page.dark-mode .no-data {
    color: var(--light-black);
}

/* Alerts Dark Mode */
html.dark-mode .alert-success,
body.admin-page.dark-mode .alert-success {
    background: rgba(40, 167, 69, 0.15);
}

html.dark-mode .alert-error,
body.admin-page.dark-mode .alert-error {
    background: rgba(220, 53, 69, 0.15);
}


/* ===== DEVELOPER İMZASI (ADMIN) ===== */
.developer-signature {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.developer-signature:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-yellow);
}

.developer-signature span {
    color: #aaa;
    font-weight: 300;
    font-style: italic;
}

.developer-signature strong {
    color: var(--primary-yellow);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Admin Dark mode için */
html.dark-mode .developer-signature,
body.admin-page.dark-mode .developer-signature {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

html.dark-mode .developer-signature span,
body.admin-page.dark-mode .developer-signature span {
    color: #666;
}

html.dark-mode .developer-signature strong,
body.admin-page.dark-mode .developer-signature strong {
    color: #1a1a1a;
}


/* ===== TEMA YÖNETİMİ SAYFA STİLLERİ ===== */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.theme-card.active {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.theme-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0;
}

.theme-info {
    flex: 1;
}

.theme-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
}

.theme-info p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.theme-status {
    flex-shrink: 0;
}

.theme-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
}

.theme-info-list li:last-child {
    border-bottom: none;
}

.theme-info-list li i {
    width: 24px;
    text-align: center;
    font-size: 1.2em;
}

/* Badge stilleri */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Dark mode için tema kartları */
body.dark-mode .theme-card,
html.dark-mode .theme-card {
    background: #2d2d2d;
    color: #fff;
}

body.dark-mode .theme-card.active,
html.dark-mode .theme-card.active {
    background: linear-gradient(135deg, #3d3d2d 0%, #2d2d2d 100%);
}

body.dark-mode .theme-info h3,
html.dark-mode .theme-info h3 {
    color: #fff;
}

body.dark-mode .theme-info p,
html.dark-mode .theme-info p {
    color: #aaa;
}

body.dark-mode .theme-info-list li,
html.dark-mode .theme-info-list li {
    border-bottom-color: #444;
    color: #ddd;
}

/* Responsive tema kartları */
@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-card {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-status {
        margin-top: 10px;
    }
}


/* ===== GÜNÜ AÇ/KAPAT KARTI ===== */
.business-status-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
    transition: var(--transition-medium);
}

.business-status-card.open {
    border-color: var(--success-green);
}

.business-status-card.closed {
    border-color: var(--danger-red);
}

.business-status-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.business-status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.business-status-card.open .business-status-icon {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-green);
}

.business-status-card.closed .business-status-icon {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-red);
}

.business-status-text h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.business-status-text .status-label {
    font-weight: 700;
}

.business-status-card.open .status-label {
    color: var(--success-green);
}

.business-status-card.closed .status-label {
    color: var(--danger-red);
}

.business-status-text p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

.business-status-actions .btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .business-status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .business-status-info {
        flex-direction: column;
    }
    
    .business-status-actions {
        width: 100%;
    }
    
    .business-status-actions .btn-lg {
        width: 100%;
    }
}

/* ===== KAPALI DURUM STİLİ ===== */
.status-closed {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.device-item.status-closed {
    border-left-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
    opacity: 0.8;
}

.stat-card.closed {
    border-left-color: #6c757d;
}

.stat-card.closed .stat-icon {
    background: #6c757d;
    color: var(--white);
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBİL VE TABLET UYUMLULUK - KAPSAMLI RESPONSİVE STİLLER
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hamburger Menu Button - Mobil Uyumlu */
.admin-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-right: 15px;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.admin-hamburger:hover {
    background: rgba(255, 215, 0, 0.1);
}

.admin-hamburger:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.admin-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 4px 0;
    border-radius: 2px;
    transition: all var(--transition-medium);
    transform-origin: center;
}

.admin-hamburger:hover span {
    background: var(--primary-yellow);
}

.admin-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-yellow);
}

.admin-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.admin-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-yellow);
}

/* Sidebar Overlay - Geliştirilmiş */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-medium);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== TABLET (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .admin-hamburger {
        display: block;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-title h2 {
        font-size: 1.1rem;
    }
    
    .admin-title span {
        font-size: 0.7rem;
    }
    
    /* Dashboard */
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    /* Cihazlar */
    .devices-content {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    .admin-hamburger {
        display: block !important;
        padding: 15px 12px !important;
        z-index: 1002 !important;
        margin-right: 10px !important;
    }
    
    .admin-nav-container {
        padding: 0 15px;
    }
    
    .admin-sidebar {
        width: 280px !important;
        z-index: 1001 !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4) !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding: 15px 10px;
    }
    
    .admin-user > span {
        display: none;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-actions .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Admin title responsive */
    .admin-title h2 {
        font-size: 1rem !important;
    }
    
    .admin-title span {
        font-size: 0.65rem !important;
    }
    
    /* Logo responsive */
    .admin-logo img,
    .admin-logo .logo-placeholder {
        width: 35px !important;
        height: 35px !important;
    }
}
    
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Kampanyalar */
    .campaigns-content {
        grid-template-columns: 1fr;
    }
    
    /* Duyurular */
    .announcements-content {
        grid-template-columns: 1fr;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MOBİL (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Navbar */
    .admin-navbar {
        height: 60px;
    }
    
    .admin-nav-container {
        padding: 0 10px;
    }
    
    .admin-logo img {
        height: 35px !important;
        width: 35px !important;
    }
    
    .admin-title h2 {
        font-size: 1rem;
    }
    
    .admin-title span {
        display: none;
    }
    
    .admin-user > span {
        display: none;
    }
    
    .admin-theme-toggle {
        padding: 6px 10px;
        margin-right: 8px;
    }
    
    .admin-theme-toggle span {
        display: none;
    }
    
    .admin-actions {
        gap: 5px;
    }
    
    .admin-actions .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .admin-actions .btn span {
        display: none;
    }
    
    /* Sidebar */
    .admin-sidebar {
        width: 280px;
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .admin-menu a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Main Content */
    .admin-main {
        margin-top: 60px;
        padding: 15px 10px;
        min-height: calc(100vh - 60px);
    }
    
    .admin-header {
        margin-bottom: 20px;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-header p {
        font-size: 0.9rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
    
    .stat-trend,
    .stat-percentage {
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
    }
    
    /* Cards */
    .card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* Devices Grid */
    .devices-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .device-item {
        padding: 12px;
    }
    
    .device-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .device-header h4 {
        font-size: 1rem;
    }
    
    .device-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .device-actions form {
        width: 100%;
    }
    
    .status-select {
        width: 100%;
        padding: 10px;
    }
    
    .device-actions .btn-danger {
        width: 100%;
    }
    
    /* Quick Actions */
    .action-group {
        padding: 12px;
    }
    
    .action-group h4 {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Settings Tabs */
    .settings-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left-color: var(--primary-yellow);
    }
    
    /* Price Grid */
    .price-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .price-item {
        padding: 15px;
    }
    
    .price-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Campaigns */
    .campaign-item {
        padding: 15px;
    }
    
    .campaign-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .campaign-actions {
        width: 100%;
        justify-content: center;
    }
    
    .campaign-actions .btn {
        flex: 1;
    }
    
    /* Announcements */
    .announcement-item {
        padding: 15px;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .announcement-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .announcement-dates {
        flex-direction: column;
        gap: 5px;
    }
    
    .announcement-actions {
        width: 100%;
    }
    
    .announcement-actions .btn {
        flex: 1;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Tables */
    .reports-table {
        font-size: 11px;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 8px 5px;
    }
    
    /* İşletme Yönetimi */
    .business-main-card {
        padding: 20px 15px;
    }
    
    .business-status-header {
        flex-direction: column;
        text-align: center;
    }
    
    .status-indicator {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .status-text h2 {
        font-size: 1.3rem;
    }
    
    .btn-business {
        padding: 20px 30px;
        width: 100%;
    }
    
    .btn-business i {
        font-size: 2rem;
    }
    
    .btn-business span {
        font-size: 1.1rem;
    }
    
    /* Developer Signature */
    .developer-signature {
        font-size: 11px;
        padding: 10px;
    }
}

/* ===== KÜÇÜK MOBİL (max-width: 480px) ===== */
@media (max-width: 480px) {
    .admin-navbar {
        height: 55px;
    }
    
    .admin-logo img {
        height: 30px !important;
        width: 30px !important;
    }
    
    .admin-title h2 {
        font-size: 0.9rem;
    }
    
    .admin-theme-toggle {
        padding: 5px 8px;
    }
    
    .admin-actions .btn {
        padding: 5px 8px;
    }
    
    .admin-sidebar {
        width: 100%;
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    .admin-main {
        margin-top: 55px;
        padding: 10px 8px;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    .card {
        padding: 12px;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    /* Rapor tablosu scroll */
    .card-body {
        overflow-x: auto;
    }
    
    .reports-table {
        min-width: 600px;
    }
}

/* ===== GÖRSEL YÖNETİMİ MOBİL ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        height: 120px;
    }
    
    .gallery-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .gallery-actions .btn {
        width: 100%;
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 150px;
    }
}

/* ===== TEMA YÖNETİMİ MOBİL ===== */
@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .theme-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .theme-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== REZERVASYON MODAL MOBİL ===== */
@media (max-width: 480px) {
    #reserveModal > div {
        padding: 20px 15px;
        margin: 10px;
    }
    
    #reserveModal h3 {
        font-size: 1.1rem;
    }
    
    #reserveModal .reserve-time-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* ===== MAIL AYARLARI SAYFASI ===== */
.admin-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.admin-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-switch input[type="checkbox"] {
    width: 50px;
    height: 25px;
    appearance: none;
    background: #ccc;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-switch input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.form-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.form-switch input[type="checkbox"]:checked::before {
    transform: translateX(25px);
}

.form-switch label {
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.form-help {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid #ddd;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.btn-block {
    width: 100%;
}

/* SMTP Provider Styles */
.smtp-provider {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.smtp-provider strong {
    display: block;
    margin-bottom: 5px;
}

.smtp-provider small {
    display: block;
    color: #666;
    margin-left: 10px;
}

.usage-info {
    margin-bottom: 20px;
}

.usage-info h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.usage-info small {
    display: block;
    color: #666;
    margin-left: 15px;
    margin-bottom: 3px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form Error States */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive */
@media (max-width: 1200px) {
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        text-align: center;
    }
}

/* Dark Mode Support */
.dark-mode .form-section {
    border-top-color: #444;
}

.dark-mode .smtp-provider {
    background: #2d2d2d;
}

.dark-mode .form-help {
    color: #aaa;
}

.dark-mode .usage-info small {
    color: #aaa;
}

.dark-mode .alert-success {
    background: #1e4d2b;
    color: #a3d9a5;
    border-color: #2d5a3d;
}

.dark-mode .alert-danger {
    background: #4d1e24;
    color: #d9a3a8;
    border-color: #5a2d32;
}

.dark-mode .alert-warning {
    background: #4d3d1e;
    color: #d9c3a3;
    border-color: #5a4a2d;
}

.dark-mode .alert-info {
    background: #1e3d4d;
    color: #a3c3d9;
    border-color: #2d4a5a;
}
/* Alert mesajları için ek stiller */
.alert div {
    flex: 1;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
}

.alert pre {
    background: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 5px;
    font-size: 11px;
    margin-top: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.dark-mode .alert pre {
    background: rgba(255,255,255,0.1);
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.dark-mode .alert-info {
    background: #1e3d4d;
    color: #a3c3d9;
    border-color: #2d4a5a;
}