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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.dark-mode-toggle {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logout-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    border-color: rgba(244, 67, 54, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* İstatistik Wrapper */
.stats-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr;
    gap: 20px;
    margin-top: 20px;
}

.stats-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stats-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.stats-section.stats-current {
    border-color: rgba(102, 126, 234, 0.5);
}

.stats-section.stats-current .stats-title {
    color: #8b9bff;
    border-bottom-color: rgba(102, 126, 234, 0.5);
}

.stats-section.stats-consumed {
    border-color: rgba(76, 175, 80, 0.5);
}

.stats-section.stats-consumed .stats-title {
    color: #81c784;
    border-bottom-color: rgba(76, 175, 80, 0.5);
}

.stats-section.stats-favorites {
    border-color: rgba(255, 193, 7, 0.5);
}

.stats-section.stats-favorites .stats-title {
    color: #ffd54f;
    border-bottom-color: rgba(255, 193, 7, 0.5);
}

.stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-favorites .stats {
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
}

.stat-label {
    font-size: 0.85em;
    opacity: 0.85;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dark Mode - İstatistikler */
body.dark-mode .stats-section {
    background: rgba(45, 45, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stats-section.stats-current {
    border-color: rgba(139, 155, 255, 0.3);
}

body.dark-mode .stats-section.stats-consumed {
    border-color: rgba(129, 199, 132, 0.3);
}

body.dark-mode .stats-section.stats-favorites {
    border-color: rgba(255, 213, 79, 0.3);
}

/* Arama Bölümü */
.search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#searchInput {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Butonlar */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: #757575;
    color: white;
}

.btn-secondary:hover {
    background: #616161;
}

.btn-danger {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.detail-modal {
    max-width: 800px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-input input[type="range"] {
    flex: 1;
}

#ratingValue {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.photo-help {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.photo-preview-item .remove-photo:hover {
    background: rgba(198, 40, 40, 1);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-gallery img:hover {
    transform: scale(1.05);
}

.quantity-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-actions button {
    flex: 1;
}

/* Şarap Kartları */
.wine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.wine-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.wine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.photo-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 10;
}

.wine-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.wine-card-content {
    padding: 20px;
}

.wine-card h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 8px;
}

.wine-card .producer {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.wine-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.wine-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8eaf6;
    color: #5c6bc0;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.wine-badge.price {
    background: #e8f5e9;
    color: #2e7d32;
}

.wine-rating {
    font-size: 1.1em;
    margin: 10px 0;
}

.wine-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.wine-actions button {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

/* Detay Modal */
.wine-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.wine-detail-image {
    width: 100%;
    border-radius: 8px;
}

.wine-detail-info h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

.wine-detail-info .producer {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.detail-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.detail-value {
    color: #333;
    font-size: 1.05em;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #666;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .welcome-text {
        width: 100%;
        text-align: center;
    }

    .wine-detail-container {
        grid-template-columns: 1fr;
    }

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

    .search-section {
        flex-direction: column;
    }

    #searchInput {
        min-width: 100%;
    }

    header h1 {
        font-size: 2em;
    }

    /* İstatistik responsive */
    .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-value {
        font-size: 1.4em;
    }
}

/* Lokasyon ve QR Kod */
.location-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.locations-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
}

.location-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.location-qr {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin: 15px 0;
}

.location-qr canvas {
    max-width: 200px;
    height: auto;
    margin: 10px auto;
    display: block;
}

.location-wines {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.location-wine-item {
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
    transition: background 0.3s;
    cursor: pointer;
}

.location-wine-item:hover {
    background: #e8eaf6;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.print-qr-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.print-qr-btn:hover {
    background: #45a049;
}

/* QR Scanner */
#qr-reader {
    border: 2px solid #667eea;
    border-radius: 8px;
    overflow: hidden;
}

#qr-reader-results {
    margin-top: 20px;
    text-align: center;
}

.qr-result-success {
    padding: 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
}

.qr-result-error {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    margin-top: 15px;
}

/* Print styles for QR codes */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-area, .print-area * {
        visibility: visible;
    }
    
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .qr-print-label {
        text-align: center;
        page-break-after: always;
        padding: 40px;
    }
    
    .qr-print-label h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .qr-print-label canvas {
        margin: 20px auto;
        display: block;
    }
}

/* Gelişmiş Filtre Paneli */
.advanced-filters {
    display: none;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.advanced-filters.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-container {
    padding: 25px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.filters-header h3 {
    color: #333;
    font-size: 1.3em;
    margin: 0;
}

.btn-clear {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

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

.filter-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group select,
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: white;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
}

.range-inputs span {
    color: #999;
    font-weight: bold;
}

.filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.filters-actions button {
    padding: 12px 30px;
    font-size: 16px;
}

.filter-results {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
}

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

    .filters-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filters-actions {
        flex-direction: column;
        gap: 15px;
    }

    .filters-actions button {
        width: 100%;
    }
}

/* Favoriler */
.stat-favorites {
    background: rgba(255, 215, 0, 0.15) !important;
}

.stat-favorites .stat-label {
    color: #f39c12;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.favorite-btn.active {
    background: #f39c12;
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Dışa Aktarma Modal */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.export-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.export-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.export-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.export-option h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.export-option p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.export-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin-top: 20px;
}

.export-info p {
    margin: 5px 0;
    color: #1976d2;
    font-size: 0.9em;
}

.export-info strong {
    color: #0d47a1;
}

/* Responsive Export */
@media (max-width: 768px) {
    .export-options {
        grid-template-columns: 1fr;
    }
}

/* Analitik Dashboard */
.analytics-modal {
    max-width: 1200px;
}

.analytics-dashboard {
    margin-top: 25px;
}

.analytics-stats-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.analytics-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.analytics-section-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-consumed {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-value {
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.chart-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-container h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
}

.chart-container canvas {
    max-height: 300px;
}

/* Dark Mode - Analytics */
body.dark-mode .analytics-section {
    background: rgba(45, 45, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .analytics-section-title {
    color: #8b9bff;
}

body.dark-mode .chart-container {
    background: #2d2d2d;
}

body.dark-mode .chart-container h3 {
    color: #e0e0e0;
}

/* Responsive Analytics */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

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

    .stat-card-value {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode header {
    color: #e0e0e0;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

body.dark-mode .dark-mode-icon::before {
    content: '☀️';
}

body.dark-mode .dark-mode-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle::after {
    content: '☀️';
    font-size: 24px;
}

body.dark-mode .stat-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

body.dark-mode .stat-favorites {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Search Section Dark */
body.dark-mode #searchInput {
    background: #2a2a3e;
    color: #e0e0e0;
    border: 2px solid #3a3a5e;
}

body.dark-mode #searchInput::placeholder {
    color: #888;
}

body.dark-mode #searchInput:focus {
    border-color: #667eea;
}

/* Buttons Dark */
body.dark-mode .btn-secondary {
    background: #3a3a5e;
    color: #e0e0e0;
}

body.dark-mode .btn-secondary:hover {
    background: #4a4a6e;
}

/* Wine Cards Dark */
body.dark-mode .wine-card {
    background: #2a2a3e;
    border: 1px solid #3a3a5e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

body.dark-mode .wine-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

body.dark-mode .wine-card h3 {
    color: #e0e0e0;
}

body.dark-mode .wine-card .producer {
    color: #aaa;
}

body.dark-mode .wine-badge {
    background: #3a3a5e;
    color: #a8b5ff;
}

body.dark-mode .wine-badge.price {
    background: #2e4a2e;
    color: #81c784;
}

body.dark-mode .quantity-badge {
    background: #e65100;
}

body.dark-mode .location-badge {
    background: #1a3a5e;
    color: #64b5f6;
}

/* Modal Dark */
body.dark-mode .modal {
    background-color: rgba(0,0,0,0.8);
}

body.dark-mode .modal-content {
    background: #2a2a3e;
    color: #e0e0e0;
    border: 1px solid #3a3a5e;
}

body.dark-mode .close {
    color: #aaa;
}

body.dark-mode .close:hover {
    color: #fff;
}

/* Form Dark */
body.dark-mode label {
    color: #e0e0e0;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #3a3a5e;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: #667eea;
}

body.dark-mode .photo-preview-item {
    background: #1a1a2e;
    border-color: #3a3a5e;
}

/* Detail Modal Dark */
body.dark-mode .wine-detail-info h2 {
    color: #e0e0e0;
}

body.dark-mode .wine-detail-info .producer {
    color: #aaa;
}

body.dark-mode .detail-row {
    border-bottom-color: #3a3a5e;
}

body.dark-mode .detail-label {
    color: #aaa;
}

body.dark-mode .detail-value {
    color: #e0e0e0;
}

/* Empty State Dark */
body.dark-mode .empty-state {
    background: #2a2a3e;
    color: #aaa;
    border: 1px solid #3a3a5e;
}

/* Advanced Filters Dark */
body.dark-mode .advanced-filters {
    background: #2a2a3e;
    border: 1px solid #3a3a5e;
}

body.dark-mode .filters-header {
    border-bottom-color: #3a3a5e;
}

body.dark-mode .filters-header h3 {
    color: #e0e0e0;
}

body.dark-mode .filter-group label {
    color: #e0e0e0;
}

body.dark-mode .filter-group select,
body.dark-mode .filter-group input[type="number"] {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #3a3a5e;
}

body.dark-mode .filters-actions {
    border-top-color: #3a3a5e;
}

body.dark-mode .filter-results {
    color: #a8b5ff;
}

body.dark-mode .checkbox-group {
    background: #1a1a2e;
}

/* Locations Dark */
body.dark-mode .location-card {
    background: #2a2a3e;
    border-left-color: #667eea;
}

body.dark-mode .location-name {
    color: #e0e0e0;
}

body.dark-mode .location-qr {
    background: #1a1a2e;
}

body.dark-mode .location-wine-item {
    background: #1a1a2e;
}

body.dark-mode .location-wine-item:hover {
    background: #3a3a5e;
}

/* Export Modal Dark */
body.dark-mode .export-info {
    background: #1a3a5e;
    border-left-color: #2196f3;
}

body.dark-mode .export-info p {
    color: #64b5f6;
}

body.dark-mode .export-info strong {
    color: #90caf9;
}

/* Analytics Dark */
body.dark-mode .chart-container {
    background: #2a2a3e;
    border: 1px solid #3a3a5e;
}

body.dark-mode .chart-container h3 {
    color: #e0e0e0;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    body.dark-mode .header-top {
        flex-direction: column;
        gap: 15px;
    }

    body.dark-mode .header-actions {
        width: 100%;
        justify-content: center;
    }

    body.dark-mode .dark-mode-toggle:hover {
        transform: scale(1.1);
    }

    body.dark-mode .welcome-text {
        display: none;
    }
}

/* Dark Mode - Auth */
body.dark-mode .logout-btn {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

body.dark-mode .logout-btn:hover {
    background: rgba(244, 67, 54, 0.5);
    border-color: rgba(244, 67, 54, 0.7);
}

/* Yedekleme Modal */
.backup-info {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin: 20px 0;
}

.backup-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.backup-icon {
    font-size: 32px;
}

.backup-status strong {
    display: block;
    color: #2e7d32;
    margin-bottom: 5px;
}

.backup-status span {
    color: #555;
}

.backup-options {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.backup-option {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.backup-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.backup-option-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.backup-option-content {
    flex: 1;
}

.backup-option-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.backup-option-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.backup-option-content button {
    margin-top: 10px;
}

.backup-warning {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    margin-top: 25px;
}

.backup-warning strong {
    color: #e65100;
    display: block;
    margin-bottom: 10px;
}

.backup-warning ul {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #666;
}

.backup-warning li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Dark Mode - Backup */
body.dark-mode .backup-info {
    background: #1a3a2e;
    border-left-color: #4caf50;
}

body.dark-mode .backup-status strong {
    color: #81c784;
}

body.dark-mode .backup-status span {
    color: #aaa;
}

body.dark-mode .backup-option {
    background: #2a2a3e;
    border-color: #3a3a5e;
}

body.dark-mode .backup-option:hover {
    border-color: #667eea;
}

body.dark-mode .backup-option-content h3 {
    color: #e0e0e0;
}

body.dark-mode .backup-option-content p {
    color: #aaa;
}

body.dark-mode .backup-warning {
    background: #3a2a1e;
    border-left-color: #ff9800;
}

body.dark-mode .backup-warning strong {
    color: #ffb74d;
}

body.dark-mode .backup-warning ul {
    color: #aaa;
}

/* Responsive Backup */
@media (max-width: 768px) {
    .backup-option {
        flex-direction: column;
        text-align: center;
    }

    .backup-option-icon {
        align-self: center;
    }
}

/* ==========================================
   ŞARAP RULETİ STİLLERİ
   ========================================== */

/* Rulet Butonu */
.roulette-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: 2px solid rgba(255, 107, 107, 0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.roulette-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Rulet Modal */
.roulette-modal-content {
    max-width: 700px;
}

/* Rulet Filtreleri */
.roulette-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.roulette-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roulette-filters label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.roulette-filters select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s;
}

.roulette-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Rulet Sonuç Alanı */
.roulette-result {
    min-height: 300px;
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.roulette-placeholder {
    text-align: center;
    color: #666;
}

.roulette-icon {
    font-size: 80px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.roulette-placeholder p {
    font-size: 16px;
    color: #777;
}

/* Rulet Spin Animasyonu */
.roulette-spinning {
    animation: spin 0.5s linear infinite;
}

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

/* Rulet Kazanan Şarap Kartı */
.roulette-wine-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 100%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.roulette-wine-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 3px solid #667eea;
}

.roulette-wine-card h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
}

.roulette-wine-card .wine-producer {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.roulette-wine-card .wine-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.roulette-wine-card .detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.roulette-wine-card .detail-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.roulette-wine-card .detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.roulette-wine-card .wine-rating {
    font-size: 24px;
    margin: 10px 0;
}

.roulette-wine-card .btn-view-wine {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.roulette-wine-card .btn-view-wine:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Rulet Aksiyon Butonları */
.roulette-actions {
    text-align: center;
    margin: 25px 0;
}

.btn-roulette {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-roulette::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-roulette:hover::before {
    width: 300px;
    height: 300px;
}

.btn-roulette:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-roulette:active {
    transform: translateY(-1px);
}

.btn-roulette:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Rulet Bilgi */
.roulette-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    color: #1976d2;
    font-size: 14px;
}

.roulette-info strong {
    font-weight: 700;
    color: #0d47a1;
}

/* Dark Mode - Rulet */
body.dark-mode .roulette-filters {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .roulette-filters label {
    color: #e0e0e0;
}

body.dark-mode .roulette-filters select {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .roulette-result {
    background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
}

body.dark-mode .roulette-placeholder {
    color: #ccc;
}

body.dark-mode .roulette-placeholder p {
    color: #999;
}

body.dark-mode .roulette-wine-card {
    background: #2a2a2a;
}

body.dark-mode .roulette-wine-card h3 {
    color: #e0e0e0;
}

body.dark-mode .roulette-wine-card .wine-producer {
    color: #aaa;
}

body.dark-mode .roulette-wine-card .detail-value {
    color: #e0e0e0;
}

body.dark-mode .roulette-info {
    background: #2a3a4a;
    border-left-color: #42a5f5;
    color: #90caf9;
}

body.dark-mode .roulette-info strong {
    color: #64b5f6;
}

/* Responsive Rulet */
@media (max-width: 768px) {
    .roulette-filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .roulette-result {
        min-height: 250px;
        padding: 20px;
    }

    .roulette-icon {
        font-size: 60px;
    }

    .btn-roulette {
        padding: 15px 40px;
        font-size: 16px;
    }

    .roulette-wine-card {
        padding: 20px;
    }

    .roulette-wine-card img {
        width: 120px;
        height: 120px;
    }

    .roulette-wine-card .wine-details {
        gap: 15px;
    }
}

/* ==========================================
   AYARLAR MODAL & TOGGLE SWITCH
   ========================================== */

/* Ayarlar Butonu */
.settings-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: 2px solid rgba(76, 175, 80, 0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Settings Modal */
.settings-modal-content {
    max-width: 800px;
}

.settings-subtitle {
    color: #666;
    margin: -10px 0 30px 0;
    font-size: 14px;
}

/* Settings Grid */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.setting-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.setting-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}

.setting-icon {
    font-size: 32px;
    line-height: 1;
}

.setting-item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.setting-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.settings-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    font-size: 13px;
    color: #1976d2;
}

/* Dark Mode - Settings */
body.dark-mode .setting-item {
    background: #2a2a2a;
    border-left-color: #7b8cde;
}

body.dark-mode .setting-item:hover {
    background: #333;
}

body.dark-mode .setting-item h3 {
    color: #e0e0e0;
}

body.dark-mode .setting-item p {
    color: #aaa;
}

body.dark-mode .settings-subtitle {
    color: #999;
}

body.dark-mode .toggle-slider {
    background-color: #555;
}

body.dark-mode .settings-info-box {
    background: #2a3a4a;
    border-left-color: #42a5f5;
    color: #90caf9;
}

/* ==========================================
   GÖRSEL EFEKTLER (Parametrik)
   ========================================== */

/* 3D Hover Efekti */
body.effect-hover3d .wine-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.effect-hover3d .wine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.12);
}

/* Fotoğraf Zoom */
body.effect-photozoom .wine-card img {
    transition: transform 0.4s ease;
}

body.effect-photozoom .wine-card:hover img {
    transform: scale(1.1);
}

/* Favori Pulse Animasyonu */
@keyframes favoritePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

body.effect-favpulse .favorite-btn.active {
    animation: favoritePulse 1.5s ease-in-out infinite;
}

/* Türe Göre Renkler */
body.effect-colortype .wine-card[data-wine-type="Kırmızı"] {
    border-top: 4px solid #8b0000;
}

body.effect-colortype .wine-card[data-wine-type="Kırmızı"]:hover {
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
}

body.effect-colortype .wine-card[data-wine-type="Beyaz"] {
    border-top: 4px solid #ffd700;
}

body.effect-colortype .wine-card[data-wine-type="Beyaz"]:hover {
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

body.effect-colortype .wine-card[data-wine-type="Rosé"] {
    border-top: 4px solid #ff69b4;
}

body.effect-colortype .wine-card[data-wine-type="Rosé"]:hover {
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
}

body.effect-colortype .wine-card[data-wine-type="Köpüklü"] {
    border-top: 4px solid #87ceeb;
}

body.effect-colortype .wine-card[data-wine-type="Köpüklü"]:hover {
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.3);
}

body.effect-colortype .wine-card[data-wine-type="Tatlı"] {
    border-top: 4px solid #ff8c00;
}

body.effect-colortype .wine-card[data-wine-type="Tatlı"]:hover {
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

/* Altın Yıldızlar */
body.effect-goldstars .wine-rating {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 1.2em;
}

body.effect-goldstars .wine-rating:hover {
    filter: brightness(1.3);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Akıcı Animasyonlar */
body.effect-smoothanim .wine-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.effect-smoothanim .wines-grid {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-grid {
        gap: 15px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .setting-info {
        flex-direction: column;
        gap: 10px;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-actions button {
        width: 100%;
    }
}

/* ==========================================
   ETİKET/TAG SİSTEMİ
   ========================================== */

/* Tag Input ve Display */
.tags-help {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 32px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    animation: tagFadeIn 0.3s ease-out;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tag-remove:hover {
    opacity: 1;
}

/* Tag Color Variants */
.tag.tag-food {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.tag.tag-guest {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.tag.tag-special {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
}

.tag.tag-event {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
}

.tag.tag-collection {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.tag.tag-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Şarap kartlarında tag'ler */
.wine-card .wine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.wine-card .tag-small {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 12px;
}

/* Dark Mode - Tags */
body.dark-mode .tags-help {
    color: #aaa;
}

body.dark-mode .tag {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Responsive Tags */
@media (max-width: 768px) {
    .tags-display {
        gap: 6px;
    }

    .tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ==========================================
   İÇTİM Mİ VE TADIM NOTLARI STİLLERİ
   ========================================== */

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label span {
    color: #333;
}

body.dark-mode .checkbox-label span {
    color: #e0e0e0;
}

/* Tatma Notları Bölümü */
.tasting-notes-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease-in;
}

body.dark-mode .tasting-notes-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-color: #667eea;
}

.section-title {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

body.dark-mode .section-title {
    color: #8b9bff;
    border-bottom-color: #8b9bff;
}

/* Tatma Notları - Tarih Input */
.tasting-notes-section input[type="date"] {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background-color: white;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tasting-notes-section input[type="date"]:hover {
    border-color: #667eea;
}

.tasting-notes-section input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-mode .tasting-notes-section input[type="date"] {
    background-color: #2d2d2d;
    border-color: #555;
    color: #e0e0e0;
    color-scheme: dark;
}

body.dark-mode .tasting-notes-section input[type="date"]:hover {
    border-color: #8b9bff;
}

body.dark-mode .tasting-notes-section input[type="date"]:focus {
    border-color: #8b9bff;
    box-shadow: 0 0 0 3px rgba(139, 155, 255, 0.2);
}

/* Tarih input için calendar icon rengi */
.tasting-notes-section input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
    transition: filter 0.2s;
}

.tasting-notes-section input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: opacity(1);
}

body.dark-mode .tasting-notes-section input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.6);
}

body.dark-mode .tasting-notes-section input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(1);
}

/* İçildi Badge (Şarap Kartlarında) */
.consumed-badge {
    position: absolute;
    top: 45px;
    right: 10px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    z-index: 2;
}

/* İçildi Göstergesi (Detay Ekranında) */
.detail-consumed-badge {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.consumed-indicator {
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
}

/* Tatma Notları Detay */
.tasting-notes-detail {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

body.dark-mode .tasting-notes-detail {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-color: #8b9bff;
}

.tasting-notes-detail .detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

body.dark-mode .tasting-notes-detail .detail-row {
    border-bottom-color: #444;
}

.tasting-notes-detail .detail-row:last-child {
    border-bottom: none;
}

.tasting-notes-detail .detail-label {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

body.dark-mode .tasting-notes-detail .detail-label {
    color: #8b9bff;
}

.tasting-notes-detail .detail-value {
    color: #555;
    line-height: 1.6;
}

body.dark-mode .tasting-notes-detail .detail-value {
    color: #ccc;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - İçtim ve Tadım Notları */
@media (max-width: 768px) {
    .consumed-badge {
        top: 40px;
        right: 8px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .tasting-notes-section,
    .tasting-notes-detail {
        padding: 15px;
    }

    .section-title {
        font-size: 16px;
    }

    .detail-consumed-badge {
        padding: 10px 15px;
    }

    .consumed-indicator {
        font-size: 14px;
    }
}

/* İç Butonu */
.btn-consume {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-consume:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

body.dark-mode .btn-consume {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}

/* Stok Düzenleme Kontrolleri */
.quantity-edit-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

body.dark-mode .quantity-edit-section {
    background: #2d2d2d;
}

.quantity-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input-group label {
    min-width: 80px;
    font-weight: 600;
    color: #333;
}

body.dark-mode .quantity-input-group label {
    color: #ccc;
}

.quantity-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-mode .quantity-input {
    background: #3a3a3a;
    border-color: #555;
    color: #fff;
}

body.dark-mode .quantity-input:focus {
    border-color: #8b9bff;
    box-shadow: 0 0 0 3px rgba(139, 155, 255, 0.1);
}

.btn-save-quantity {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 5px;
}

.btn-save-quantity:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

body.dark-mode .btn-save-quantity {
    background: linear-gradient(135deg, #1e7e34 0%, #17a673 100%);
}

.quantity-help {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

body.dark-mode .quantity-help {
    color: #999;
}

/* Responsive - Stok Düzenleme */
@media (max-width: 768px) {
    .quantity-controls {
        gap: 10px;
    }
    
    .quantity-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .quantity-input-group label {
        min-width: auto;
    }
    
    .quantity-input {
        width: 100%;
    }
    
    .btn-save-quantity {
        width: 100%;
    }
}

/* Toplam Envanter Kartları */
.stat-card-total {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

body.dark-mode .stat-card-total {
    background: linear-gradient(135deg, #c471ed 0%, #f12711 100%);
}

.stat-card-help {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-style: italic;
}

body.dark-mode .stat-card-help {
    color: rgba(255, 255, 255, 0.7);
}

/* 4 Kartlı Grid Düzeni (Toplam Envanter için) */
.stats-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .stats-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-four {
        grid-template-columns: 1fr;
    }
}

/* İçme Zamanı Badge */
.drink-by-badge {
    position: absolute;
    top: 70px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.drink-by-badge.drink-by-soon {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.drink-by-badge.drink-by-urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: pulse 2s infinite;
}

.drink-by-badge.drink-by-expired {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Dark mode */
body.dark-mode .drink-by-badge.drink-by-soon {
    background: linear-gradient(135deg, #d68910 0%, #d4a017 100%);
}

body.dark-mode .drink-by-badge.drink-by-urgent {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

body.dark-mode .drink-by-badge.drink-by-expired {
    background: linear-gradient(135deg, #7f8c8d 0%, #566573 100%);
}

/* İçme Zamanı Uyarısı (Minimal) */
.drink-by-alert {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 12px 20px;
    margin: 0 auto 20px auto;
    max-width: 1400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-out;
}

.drink-by-alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.drink-by-alert-content span {
    font-weight: 600;
    font-size: 14px;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .drink-by-alert {
    background: linear-gradient(135deg, #d68910 0%, #ca6f1e 100%);
}

@media (max-width: 768px) {
    .drink-by-alert {
        margin: 0 10px 15px 10px;
        padding: 10px 15px;
    }

    .drink-by-alert-content span {
        font-size: 12px;
    }
}

/* ==========================================
   FOTOĞRAF LIGHTBOX STİLLERİ
   ========================================== */

.photo-lightbox {
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-content .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-content .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    margin-top: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-content .close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        font-size: 30px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================
   EXCEL İÇE AKTARMA STİLLERİ
   ========================================== */

/* İçe Aktarma Bölümü */
.import-section {
    margin: 20px 0;
    text-align: center;
}

/* Dosya Seç Butonu */
.btn-import-file {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-import-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-import-file:active {
    transform: translateY(0);
}

/* Yardım Metni */
.import-help {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Önizleme Alanı */
.import-preview {
    margin-top: 25px;
    animation: fadeIn 0.3s ease-out;
}

.import-preview h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Önizleme İstatistikleri */
.preview-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1976d2;
}

.preview-stats strong {
    color: #0d47a1;
    font-size: 18px;
}

/* Önizleme Tablosu */
.preview-table {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.preview-table-content {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.preview-table-content thead {
    background: #667eea;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.preview-table-content th,
.preview-table-content td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.preview-table-content th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.preview-table-content tbody tr:hover {
    background: #f5f5f5;
}

.preview-more {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 15px 0;
}

/* Hatalı Satırlar */
.preview-errors {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.preview-errors h4 {
    color: #e65100;
    margin: 0 0 10px 0;
}

.preview-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.preview-errors li {
    margin: 5px 0;
}

/* İçe Aktarma Aksiyonları */
.import-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.import-actions button {
    padding: 12px 30px;
    font-size: 16px;
}

/* İçe Aktarma Durum Mesajları */
.import-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.import-loading {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 2px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.import-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 2px solid #4caf50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.import-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 2px solid #f44336;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dark Mode - İçe Aktarma */
body.dark-mode .btn-import-file {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

body.dark-mode .import-help {
    color: #aaa;
}

body.dark-mode .import-preview h3 {
    color: #e0e0e0;
}

body.dark-mode .preview-stats {
    background: linear-gradient(135deg, #1a3a5e 0%, #2a4a6e 100%);
    color: #64b5f6;
    border-color: #42a5f5;
}

body.dark-mode .preview-stats strong {
    color: #90caf9;
}

body.dark-mode .preview-table-content thead {
    background: #5568d3;
}

body.dark-mode .preview-table-content th,
body.dark-mode .preview-table-content td {
    border-bottom-color: #3a3a5e;
}

body.dark-mode .preview-table-content tbody tr:hover {
    background: #2a2a3e;
}

body.dark-mode .preview-more {
    color: #aaa;
}

body.dark-mode .preview-errors {
    background: linear-gradient(135deg, #3a2a1e 0%, #4a3a2e 100%);
    border-left-color: #ff9800;
}

body.dark-mode .preview-errors h4 {
    color: #ffb74d;
}

body.dark-mode .preview-errors ul {
    color: #aaa;
}

body.dark-mode .import-loading {
    background: linear-gradient(135deg, #1a3a5e 0%, #2a4a6e 100%);
    color: #64b5f6;
    border-color: #42a5f5;
}

body.dark-mode .import-success {
    background: linear-gradient(135deg, #1a3a2e 0%, #2a4a3e 100%);
    color: #81c784;
    border-color: #66bb6a;
}

body.dark-mode .import-error {
    background: linear-gradient(135deg, #3a1a1e 0%, #4a2a2e 100%);
    color: #ef5350;
    border-color: #e57373;
}

/* Responsive - İçe Aktarma */
@media (max-width: 768px) {
    .btn-import-file {
        padding: 12px 16px;
        font-size: 14px;
    }

    .preview-stats {
        flex-direction: column;
        gap: 10px;
    }

    .preview-table-content {
        font-size: 12px;
    }

    .preview-table-content th,
    .preview-table-content td {
        padding: 8px 6px;
    }

    .import-actions {
        flex-direction: column;
    }

    .import-actions button {
        width: 100%;
    }

    /* Raf Haritası - Mobil */
    .shelf-map-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }

    .shelf-slot {
        height: 50px;
        font-size: 10px;
    }

    .available-wine-item {
        font-size: 11px;
        padding: 6px;
    }
}

/* ============================================
   RAF HARİTASI STILLER
   ============================================ */

.shelf-map-content {
    max-width: 1200px;
    width: 95%;
}

.shelf-map-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Raf Seçici Tabs */
.shelf-selector-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.shelf-tab {
    padding: 10px 20px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.shelf-tab:hover {
    background: #e0e0e0;
    border-color: #999;
}

.shelf-tab.active {
    background: linear-gradient(135deg, #722f37 0%, #9b4451 100%);
    border-color: #722f37;
    color: white;
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
}

/* Raf Yönetimi Butonları */
.shelf-management-buttons {
    display: flex;
    gap: 8px;
}

.shelf-map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.shelf-map-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.legend-box {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid #ddd;
}

.legend-empty {
    background: white;
}

.legend-occupied {
    background: linear-gradient(135deg, #722f37 0%, #9b4451 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Rafta Olmayan Şaraplar */
.shelf-available-wines {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.shelf-available-wines h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.available-wines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
}

.available-wines-list.drag-over-available {
    background: #e8f5e9;
    border-color: #4caf50;
    border-style: solid;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.available-wine-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #722f37 0%, #9b4451 100%);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.available-wine-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.available-wine-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Raf Izgara Container */
.shelf-map-grid-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Raf Izgara (9 sıra × 6 sütun) */
.shelf-map-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 0 auto;
}

.shelf-slot {
    aspect-ratio: 1;
    min-height: 60px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 11px;
    color: #999;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.shelf-slot:hover {
    border-color: #722f37;
    background: #fafafa;
}

.shelf-slot.drag-over {
    background: #f0e5e6;
    border-color: #722f37;
    border-style: dashed;
    transform: scale(1.05);
}

.shelf-slot.occupied {
    background: linear-gradient(135deg, #722f37 0%, #9b4451 100%);
    border-color: #722f37;
    color: white;
    cursor: move;
}

.shelf-slot.occupied:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.shelf-slot-label {
    font-size: 9px;
    color: #999;
    position: absolute;
    top: 4px;
    left: 4px;
    font-weight: 500;
}

.shelf-slot.occupied .shelf-slot-label {
    color: rgba(255,255,255,0.6);
}

.shelf-slot-wine-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shelf-slot-wine-year {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Raf Slot'unda Şarap Fotoğrafı */
.shelf-slot-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    border-radius: 4px;
}

.shelf-slot.occupied .shelf-slot-label,
.shelf-slot.occupied .shelf-slot-wine-name,
.shelf-slot.occupied .shelf-slot-wine-year {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Sürükleme Animasyonları */
.shelf-slot.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Responsive */
@media (max-width: 768px) {
    .shelf-map-content {
        width: 98%;
        padding: 15px;
    }

    .shelf-map-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }

    .shelf-slot {
        min-height: 50px;
        font-size: 10px;
        padding: 4px;
    }

    .shelf-map-legend {
        flex-direction: column;
        gap: 10px;
    }

    .shelf-available-wines {
        padding: 10px;
    }

    .available-wine-item {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ========================================
   Paylaşım (Share) Modal Stilleri
   ======================================== */

.share-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.share-link-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-success {
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 2px solid #4caf50;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.share-success p {
    margin: 0;
    color: #2e7d32;
    font-weight: 600;
    font-size: 16px;
}

.share-link-box {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.share-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    color: #333;
}

.share-link-input:focus {
    outline: none;
    border-color: #722f37;
    background: white;
}

.btn-copy {
    padding: 12px 20px;
    background: linear-gradient(135deg, #722f37 0%, #9b4451 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.share-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-btn-copy {
    background: linear-gradient(135deg, #722f37 0%, #9b4451 100%);
    color: white;
}

.share-btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

.share-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #722f37;
}

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

.share-info p:first-child {
    margin-top: 0;
}

.share-info p:last-child {
    margin-bottom: 0;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .share-link-box {
        flex-direction: column;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        min-width: 100%;
    }
}

/* ============================================ */
/* ADMIN PUSH NOTIFICATION STYLES */
/* ============================================ */

/* Admin Notification Button */
.admin-notif-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.admin-notif-btn:hover {
    background: linear-gradient(135deg, #EE5A52 0%, #DC3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.admin-notif-btn:active {
    transform: translateY(0);
}

/* Notification History List */
.notification-history {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.notification-history li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.notification-history li:hover {
    background: #e9ecef;
}

.notification-history li:last-child {
    border-bottom: none;
}

.notification-history strong {
    color: #333;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.notification-history small {
    color: #6c757d;
    font-size: 12px;
}

/* Form improvements for notification modal */
#adminNotificationModal .form-group {
    margin-bottom: 20px;
}

#adminNotificationModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#adminNotificationModal .form-group input,
#adminNotificationModal .form-group textarea,
#adminNotificationModal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#adminNotificationModal .form-group input:focus,
#adminNotificationModal .form-group textarea:focus,
#adminNotificationModal .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#adminNotificationModal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

#adminNotificationModal .btn-primary,
#adminNotificationModal .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#adminNotificationModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#adminNotificationModal .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6941a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#adminNotificationModal .btn-secondary {
    background: #6c757d;
    color: white;
}

#adminNotificationModal .btn-secondary:hover {
    background: #5a6268;
}

/* Dark mode support */
.dark-mode .admin-notif-btn {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.dark-mode .notification-history li {
    background: #2d2d2d;
    border-bottom-color: #444;
}

.dark-mode .notification-history li:hover {
    background: #383838;
}

.dark-mode .notification-history strong {
    color: #fff;
}

.dark-mode .notification-history small {
    color: #aaa;
}

.dark-mode #adminNotificationModal .form-group input,
.dark-mode #adminNotificationModal .form-group textarea,
.dark-mode #adminNotificationModal .form-group select {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}
