body {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

/* Ana Container */
.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

/* Üst Bar */
.top-bar {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.top-bar h1 {
    color: #6f4e37;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Ana İçerik Alanı */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-body {
    padding: 20px;
}

/* Kod Gösterimi */
.code-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid #6f4e37;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #6f4e37;
    margin: 15px 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Kahve İkonları */
.coffee-icon {
    font-size: 1.8rem;
    margin: 0 2px;
    transition: transform 0.2s ease;
}

.coffee-icon:hover {
    transform: scale(1.1);
}

.filled { 
    color: #8b4513; 
    text-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.empty { 
    color: #ddd; 
    opacity: 0.7;
}

/* İlerleme Konteyneri */
.progress-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    border: 2px solid #6f4e37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Bedava Kahve Uyarısı */
.free-coffee-alert {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

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

/* İstatistikler */
.stats-row {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #6f4e37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-row .badge {
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Form Elemanları */
.auth-form {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 2px solid #6f4e37;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.form-control:focus {
    border-color: #6f4e37;
    box-shadow: 0 0 0 0.2rem rgba(111, 78, 55, 0.25);
    transform: translateY(-1px);
}

/* Butonlar */
.btn {
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    border: none;
    box-shadow: 0 5px 15px rgba(111, 78, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b4513, #6f4e37);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.4);
}

.btn-outline-danger, .btn-outline-primary {
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-outline-danger:hover, .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Tab Sistemi */
.auth-container {
    max-width: 100%;
    margin: 0 auto;
}

.auth-tabs {
    margin-bottom: 15px;
}

.auth-tabs .nav-link {
    color: #6f4e37;
    border-radius: 12px 12px 0 0;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-tabs .nav-link.active {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    color: white;
    box-shadow: 0 5px 15px rgba(111, 78, 55, 0.3);
}

.auth-tabs .nav-link:hover:not(.active) {
    background: rgba(111, 78, 55, 0.1);
    transform: translateY(-1px);
}

/* Checkbox */
.form-check-input {
    border-radius: 6px;
    border: 2px solid #6f4e37;
}

.form-check-input:checked {
    background-color: #6f4e37;
    border-color: #6f4e37;
}

.form-check-label a {
    color: #6f4e37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: #8b4513;
    text-decoration: underline;
}

/* Uyarılar */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px;
    font-weight: 500;
    margin: 10px 0;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

/* Footer */
footer {
    background: rgba(111, 78, 55, 0.95);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* KVKK Sayfası Stilleri */
.kvkk-container {
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    padding: 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(111, 78, 55, 0.1);
    max-height: 60vh;
    overflow-y: auto;
}

.kvkk-title {
    color: #6f4e37;
    border-bottom: 2px solid #6f4e37;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.kvkk-section {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #6f4e37;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.kvkk-section h3 {
    color: #8b4513;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.kvkk-section p {
    text-align: justify;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 10px;
}

.kvkk-section ul {
    padding-left: 20px;
}

.kvkk-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #495057;
    font-size: 0.9rem;
}

.back-button {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(111, 78, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-button:hover {
    background: linear-gradient(135deg, #8b4513, #6f4e37);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.4);
}

/* Kasa Paneli Stilleri */
.login-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.user-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid #6f4e37;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.action-buttons {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 0.85rem;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    color: #212529;
}

.nav-tabs {
    border-bottom: 2px solid #6f4e37;
}

.nav-tabs .nav-link {
    border-radius: 12px 12px 0 0;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6f4e37;
    border: none;
    margin-right: 3px;
    font-size: 0.85rem;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    color: white;
    box-shadow: 0 3px 10px rgba(111, 78, 55, 0.3);
}

.badge {
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Responsive Tasarım */
@media (max-width: 480px) {
    .main-container {
        padding: 5px;
    }
    
    .top-bar h1 {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .code-display {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .coffee-icon {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .auth-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .kvkk-container {
        padding: 15px;
        max-height: 50vh;
    }
    
    .kvkk-title {
        font-size: 1.1rem;
    }
    
    .kvkk-section {
        padding: 12px;
    }
    
    .kvkk-section h3 {
        font-size: 1rem;
    }
    
    .kvkk-section p {
        font-size: 0.85rem;
    }
}

/* Scrollbar Stilleri */
.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb {
    background: rgba(111, 78, 55, 0.5);
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(111, 78, 55, 0.7);
}

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

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Özel Efektler */
.glow-effect {
    box-shadow: 0 0 20px rgba(111, 78, 55, 0.3);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* Mobil Optimizasyonları */
@media (max-height: 600px) {
    .main-container {
        padding: 5px;
    }
    
    .top-bar {
        padding: 10px;
        margin-bottom: 5px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .code-display {
        padding: 12px;
        margin: 10px 0;
    }
    
    .progress-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .free-coffee-alert {
        padding: 15px;
        margin: 10px 0;
        font-size: 1.1rem;
    }
    
    .stats-row {
        padding: 12px;
        margin: 8px 0;
    }
    
    .auth-form {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Aktif Kullanıcı Kartları */
.active-user-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.active-user-card .card {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
    transition: all 0.3s ease;
}

.active-user-card:hover .card {
    border-color: #20c997;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.user-avatar {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.avatar-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.user-stats .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.active-time {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
}

/* Aktif kullanıcı animasyonu */
@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

.active-user-card .card {
    animation: pulse-green 2s infinite;
}

.active-user-card.selected .card {
    border-color: #007bff;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

/* Responsive tasarım için aktif kullanıcı kartları */
@media (max-width: 768px) {
    .active-user-card .col-md-4 {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .active-user-card .col-md-4 {
        width: 100%;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-text {
        font-size: 1.2rem;
    }
    
    .user-stats .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Kasa Paneli Sayaç ve Yenileme Butonları */
.countdown-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.refresh-button {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
}

.refresh-button:hover:not(:disabled) {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.countdown-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #6f4e37;
}

/* Aktif kullanıcı başlık alanı */
.active-users-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #28a745;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
}

/* Navbar Stilleri */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar .input-group {
    max-width: 220px;
    min-width: 180px;
    height: 40px;
}

.navbar .form-control {
    border-radius: 20px 0 0 20px !important;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    height: 40px;
    padding: 8px 16px;
    box-sizing: border-box;
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.navbar .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
    color: white;
}

.navbar .btn-outline-light {
    border-radius: 0 20px 20px 0 !important;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar .input-group > .form-control,
.navbar .input-group > .btn {
    height: 40px;
}

/* Modal Stilleri */
.modal-xl {
    max-width: 900px;
}

.modal-dialog {
    min-width: 350px;
    max-width: 900px;
    width: 95vw;
    margin: 1.5rem auto;
}

.modal-content {
    min-height: 500px;
    max-height: 95vh;
    overflow: visible;
}

.modal-body {
    padding: 18px 18px 10px 18px;
    max-height: none;
    overflow: visible;
}

/* Modal içindeki kartları ve satırları daha kompakt yap */
.modal .card,
.modal .card.bg-light {
    border-radius: 12px !important;
    padding: 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.modal .card-body {
    padding: 12px 10px 10px 10px;
}

.modal .user-avatar {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

.modal .avatar-text {
    font-size: 1.1rem;
}

.modal .stat-number {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.modal .stat-label {
    font-size: 0.75rem;
}

.modal .progress-display {
    padding: 8px 0;
    font-size: 1.2rem;
}

.modal .coffee-icon {
    font-size: 1.3rem;
    margin: 0 1px;
}

.modal .btn-lg {
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
}

.modal .row.mb-4 {
    margin-bottom: 10px !important;
}

.modal .alert {
    padding: 8px 10px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .modal-xl, .modal-dialog {
        max-width: 98vw !important;
        width: 98vw !important;
    }
}

@media (max-width: 600px) {
    .modal-body {
        padding: 8px 2px 2px 2px;
    }
    .modal .btn-lg {
        padding: 7px 10px;
        font-size: 0.9rem;
    }
    .modal .stat-number {
        font-size: 1rem;
    }
    .modal .coffee-icon {
        font-size: 1.1rem;
    }
}