/* Diş Kliniği Randevu Sistemi - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
}

/* Navbar Styles */
.navbar {
    z-index: 1030;
    min-height: 76px;
    flex-wrap: nowrap;
}

.navbar .container,
.navbar .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-brand {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
    margin-right: 1rem;
    max-width: none;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    flex-shrink: 0;
}

.navbar-brand-text {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.navbar-toggler {
    flex-shrink: 0;
    margin-left: auto;
    order: 2;
}

.navbar-collapse {
    flex-grow: 1;
    overflow: visible;
    order: 1;
}

.navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

.navbar-nav .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    display: block;
}

.navbar-nav .nav-link.btn {
    white-space: nowrap;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tablet ve küçük ekranlar için */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link.btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .navbar-brand-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Orta boy ekranlar için */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand-text {
        max-width: 200px;
    }
}

/* Büyük ekranlar için */
@media (min-width: 1200px) {
    .navbar-brand-text {
        max-width: none;
    }
}

/* Mobile Navbar Fixes */
@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        max-width: calc(100% - 60px);
        margin-right: 0;
    }
    
    .navbar-brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    .navbar-toggler {
        order: 2;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
        white-space: normal;
    }
    
    .navbar-nav .nav-link.btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        margin-left: 0;
    }
    
    .navbar-collapse {
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out;
}

.hero-btn {
    animation: fadeInUp 1.2s ease-out;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

.hero-badge {
    animation: fadeIn 0.6s ease-out;
}

.hero-stats {
    animation: fadeInUp 1.4s ease-out;
}

.stat-item {
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-icon-wrapper {
    position: relative;
    display: inline-block;
}

.hero-main-icon {
    font-size: 20rem;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.min-vh-75 {
    min-height: 75vh;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* Appointment Form */
.appointment-form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Admin Styles */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 12px 20px;
    border-radius: 5px;
    margin: 5px 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 30px;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .appointment-form {
        padding: 25px;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Service Info */
#service_info {
    animation: slideDown 0.3s ease-out;
    border-width: 2px !important;
}

#service_info .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Features Section */
.features-section {
    background: white;
    padding: 80px 0;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Services Preview Section */
.services-preview-section {
    padding: 80px 0;
}

.service-preview-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.service-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.service-preview-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.service-preview-card:hover .service-preview-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Doctors Preview Section */
.doctors-preview-section {
    padding: 80px 0;
    background: white;
}

.doctor-preview-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.doctor-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.doctor-preview-photo {
    margin-bottom: 25px;
}

.doctor-preview-photo img,
.doctor-placeholder {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.doctor-preview-card:hover .doctor-preview-photo img,
.doctor-preview-card:hover .doctor-placeholder {
    transform: scale(1.05);
}

.doctor-placeholder {
    font-size: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.doctor-preview-content {
    margin-top: 20px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Doctor Card */
.doctor-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.doctor-photo img {
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Badge Styles */
.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: white !important;
}

.social-links a:hover i.fa-facebook {
    color: #1877f2 !important;
}

.social-links a:hover i.fa-instagram {
    color: #e4405f !important;
}

.social-links a:hover i.fa-twitter {
    color: #1da1f2 !important;
}

.social-links a:hover i.fa-linkedin {
    color: #0077b5 !important;
}

.social-links a:hover i.fa-youtube {
    color: #ff0000 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Button Group */
.admin-content .btn-group-sm .btn,
.admin-content .btn-sm {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.875rem;
}

/* Time Slots */
.time-slot {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
}

