/* Randevu Sistemi - Modern Premium Tasarım v7.0 - SVG İkonlar + Mobile + Cache Fix */

:root {
    --primary-color: #1C1C1C;
    --secondary-color: #C0C0C0;
    --accent-color: #878681;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #0A0A0A;
    --light-color: #f8fafc;
    --white: #ffffff;
    --cream: #fffef9;
    --border-radius: 1rem;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--light-color) 0%, #f0f9ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Ana Container */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Kart Tasarımları */
.auth-card, .dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid rgba(192, 192, 192, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.dashboard-card {
    max-width: none;
}

/* Logo ve Başlık */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.logo-section h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.logo-section p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

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

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.spinner {
    border: 0.25em solid rgba(255, 255, 255, 0.2);
    border-top: 0.25em solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Login Page Enhancements */
.demo-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin-bottom: 1rem;
}

.login-features {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    padding: 0.5rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.feature-item span {
    font-weight: 500;
}

@media (max-width: 480px) {
    .login-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        justify-content: center;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    99% { opacity: 0; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:invalid {
    border-color: var(--danger-color);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    user-select: none;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-success {
    color: var(--white);
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    color: var(--white);
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

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

.btn-secondary {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Alert Mesajları */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Dashboard Navbar */
.dashboard-navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(28, 28, 28, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.dashboard-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.user-info, .datetime-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.me-1, .me-2, .me-3 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.text-light {
    color: rgba(255,255,255,0.9) !important;
}

/* Stat Cards */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.col-md-3 {
    flex: 0 0 25%;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        flex: 0 0 100%;
    }
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

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

.stat-card-primary {
    border-left-color: var(--primary-color);
}

.stat-card-success {
    border-left-color: var(--success-color);
}

.stat-card-warning {
    border-left-color: var(--warning-color);
}

.stat-card-danger {
    border-left-color: var(--danger-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.1), rgba(135, 134, 129, 0.1));
    color: var(--primary-color);
}

.stat-card-success .stat-icon {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
}

.stat-card-warning .stat-icon {
    background: rgba(255,193,7,0.1);
    color: var(--warning-color);
}

.stat-card-danger .stat-icon {
    background: rgba(220,53,69,0.1);
    color: var(--danger-color);
}

.stat-content h4 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--dark-color);
}

.stat-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Card Headers */
.card-header {
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.75rem;
}

.card-header h3 {
    color: var(--dark-color);
    font-weight: 600;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Button Improvements */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255,255,255,0.3);
    background: transparent;
}

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

/* Dashboard Container */
.dashboard-navbar .container {
    max-width: 1200px;
}

/* Margin classes */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Appointment Notes */
.appointment-notes {
    background: rgba(192, 192, 192, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.5rem;
}

.appointment-notes small {
    display: flex;
    align-items: center;
    font-style: italic;
    line-height: 1.4;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.appointment-notes svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Search & Filter Components */
.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-group {
    flex: 1;
    min-width: 200px;
}

.filter-group {
    min-width: 180px;
}

.search-button-group {
    min-width: 100px;
}

.input-with-icon, .select-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    z-index: 2;
}

.input-with-icon input, .select-with-icon select {
    padding-left: 40px;
}

/* Button Responsive */
.btn-responsive {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    flex-shrink: 0;
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* Table Responsive */
.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    background: var(--white);
}

.table thead th {
    background: linear-gradient(135deg, var(--light-color), #f8fafc);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .user-info, .datetime-info {
        display: none;
    }
    
    .btn-outline-light {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input-group, .filter-group, .search-button-group {
        width: 100%;
        min-width: auto;
    }
    
    .btn-text {
        display: none;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .btn-responsive {
        justify-content: center;
        width: 100%;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-content h4 {
        font-size: 1.5rem;
    }
    
    .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .auth-card, .dashboard-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .btn-outline-light span {
        display: none;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th, .table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .appointment-notes {
        padding: 0.25rem 0.5rem;
        margin-top: 0.25rem;
    }
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Tablo */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: var(--white);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-success {
    color: var(--white);
    background-color: var(--success-color);
}

.badge-warning {
    color: var(--dark-color);
    background-color: var(--warning-color);
}

.badge-danger {
    color: var(--white);
    background-color: var(--danger-color);
}

.badge-primary {
    color: var(--white);
    background-color: var(--primary-color);
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    max-width: 500px;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: var(--light-color);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: var(--light-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Yardımcı Sınıflar */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--secondary-color); }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }

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

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

/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .auth-card, .dashboard-card {
        padding: 1.5rem;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .auth-card, .dashboard-card {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.125rem;
        max-width: calc(100% - 0.25rem);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: none;
}

.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Hover Effects */
.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Print Styles */
@media print {
    body {
        background: var(--white);
    }
    
    .btn, .modal {
        display: none !important;
    }
}