/* Custom CSS for Mjeshter Platform */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background-color: #007bff; /* Fallback */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    color: white;
    position: relative;
}

.hero-section .container {
    height: 100%;
}

.hero-section .row {
    min-height: calc(100vh - 180px);
    align-items: center;
}

.hero-content {
    padding: 2rem 0;
}

.hero-buttons .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    padding: 2rem 0;
}

.hero-icon-container {
    padding: 2rem;
}

.hero-icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

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

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    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.2);
}

.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 0.375rem;
}

/* Mobile menu animation */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon {
    transition: all 0.3s ease;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

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

/* Dashboard Styles */
.dashboard-sidebar {
    background-color: var(--dark-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateX(0);
    overflow: hidden;
}

.dashboard-sidebar .p-3 {
    height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar h4 {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

.sidebar-nav .nav-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

.sidebar-nav .nav-bottom {
    flex-shrink: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: auto;
}

.dashboard-sidebar.sidebar-hidden {
    transform: translateX(-100%);
}

.dashboard-main {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

.dashboard-main.sidebar-collapsed {
    margin-left: 0;
}

/* Mobile overlay for sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar-nav .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Logout button styling */
.sidebar-nav .nav-link.text-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #d39e00);
}

.stat-card.info {
    background: linear-gradient(135deg, var(--info-color), #117a8b);
}

.stat-card.danger {
    background: linear-gradient(135deg, var(--danger-color), #bd2130);
}

/* Tables */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table thead th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Status Badges */
.status-pending {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.status-approved {
    background-color: var(--success-color);
}

.status-rejected {
    background-color: var(--danger-color);
}

.status-completed {
    background-color: var(--info-color);
}

.status-cancelled {
    background-color: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .hero-section {
        padding-top: 60px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Calendar Styles */
.calendar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.calendar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background-color: rgba(0,123,255,0.1);
}

.calendar-day.has-appointment {
    background-color: rgba(40,167,69,0.2);
    color: var(--success-color);
    font-weight: bold;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Chat/Messages */
.message-container {
    max-height: 400px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
}

.message.sent {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

.message.received {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* File Upload */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(0,123,255,0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(40,167,69,0.1);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-collapse {
        background-color: rgba(0, 123, 255, 0.95);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin: 0.125rem 0;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255,255,255,0.2);
        color: white;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-icons-grid {
        margin-top: 2rem;
    }
    
    .dashboard-sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 1050;
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .dashboard-main .navbar {
        margin: -20px -15px 20px -15px;
        padding: 1rem 15px;
    }
    
    #sidebar-toggle {
        border: none;
        background: none;
        font-size: 1.2rem;
        padding: 0.5rem;
    }
}

@media (min-width: 769px) {
    .hero-section .row {
        min-height: 70vh;
    }
}
footer {
    margin-top: auto;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .dashboard-sidebar {
        display: none !important;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
    }
}
