﻿/* Custom styles for Appointment System */

/* Remove old Bootstrap padding */
body {
    padding-top: 0;
    padding-bottom: 0;
}

/* Card enhancements */
.card {
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px 0 rgba(67, 89, 113, 0.16);
}

/* Service Provider Cards */
.service-provider-card {
    transition: transform 0.3s ease;
}

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

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

/* Availability Slot */
.availability-slot {
    border: 1px solid #d9dee3;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.availability-slot:hover {
    background-color: #f5f5f9;
    border-color: #696cff;
}

.availability-slot.selected {
    background-color: #e7e7ff;
    border-color: #696cff;
}

/* Form enhancements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Status badges */
.badge-status-pending {
    background-color: #ffab00;
    color: #fff;
}

.badge-status-approved {
    background-color: #71dd37;
    color: #fff;
}

.badge-status-rejected {
    background-color: #ff3e1d;
    color: #fff;
}

.badge-status-completed {
    background-color: #696cff;
    color: #fff;
}

/* Table enhancements */
.table {
    border-radius: 0.375rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f5f5f9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Profile image */
.profile-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #a1acb8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobilde menü yazılarını daha okunaklı yap */
@media (max-width: 1199.98px) {
    /* Menü linkleri */
    .layout-menu .menu-inner .menu-item .menu-link {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        padding: 0.875rem 1.25rem !important;
        min-height: 48px !important;
    }
    
    /* Menü ikonları */
    .layout-menu .menu-inner .menu-item .menu-link .menu-icon {
        font-size: 1.25rem !important;
        width: 1.75rem !important;
        margin-right: 0.75rem !important;
    }
    
    /* Menü metinleri */
    .layout-menu .menu-inner .menu-item .menu-link div {
        font-size: 1rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em !important;
    }
    
    /* App brand (logo ve başlık) */
    .layout-menu .app-brand {
        padding: 1rem 1.25rem !important;
    }
    
    .layout-menu .app-brand .app-brand-text {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
    }
    
    /* Menü item'lar arası boşluk */
    .layout-menu .menu-inner .menu-item {
        margin-bottom: 0.25rem !important;
    }
}

/* Menu positioning - navbar altından başlasın */
@media (min-width: 1200px) {
    .layout-menu-fixed .layout-menu,
    .layout-menu-fixed-offcanvas .layout-menu {
        top: 75px !important; /* Navbar yüksekliği kadar aşağı kaydır */
        height: calc(100% - 75px) !important; /* Yüksekliği ayarla */
    }
}

/* Mobilde de navbar altından başlasın - Daha spesifik selector kullan */
@media (max-width: 1199.98px) {
    #layout-menu.layout-menu,
    aside#layout-menu.layout-menu,
    .layout-menu.menu-vertical {
        top: 90px !important; /* Navbar yüksekliği kadar aşağı kaydır */
        height: calc(100vh - 90px) !important; /* Yüksekliği ayarla */
    }
    
    /* Menü expanded olduğunda da aynı pozisyonda kalsın */
    .layout-menu-expanded #layout-menu.layout-menu,
    .layout-menu-expanded aside#layout-menu.layout-menu,
    .layout-menu-expanded .layout-menu.menu-vertical {
        top: 90px !important;
        height: calc(100vh - 90px) !important;
    }
    
    /* Overlay opaklığını artır */
    .layout-overlay.layout-menu-toggle {
        opacity: 0.8 !important; /* Daha opak yap (0.5 yerine 0.8) */
        background: #4b465c !important;
        top: 90px !important; /* Overlay de navbar altından başlasın */
        height: calc(100vh - 90px) !important;
    }
    
    /* Dark theme için overlay */
    .dark-style .layout-overlay.layout-menu-toggle {
        background: #000 !important;
        opacity: 0.85 !important;
    }
}
