/* Ofis Su Takip - Custom Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .card {
    border: none;
    border-radius: 15px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Welcome Section */
.welcome-section h2 {
    color: #1e293b;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

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

.card-header {
    background-color: white;
    border-bottom: 2px solid var(--light-bg);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Quick Action Buttons */
.quick-action-btn {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
    margin-right: 5px;
    vertical-align: middle;
}

/* Tables */
.table {
    background-color: white;
}

.table thead {
    background-color: var(--light-bg);
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.6s ease;
}

/* Chart Container */
.chart-container {
    padding: 1rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

/* Pagination */
.pagination {
    gap: 0.3rem;
}

.page-link {
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
}

.page-link:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Stat kartları */
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Stat card'ları 2 sütun yap */
    .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Quick action buttons */
    .quick-action-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    /* Welcome section */
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
    
    /* Tablolar */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Badge'ler */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Form elements */
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Card headers */
    .card-header h5 {
        font-size: 1rem;
    }
    
    /* Grafik container'ları */
    canvas {
        max-height: 250px !important;
    }
    
    /* İstatistik kartları mobilde daha kompakt */
    .text-center h6 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .text-center .h5 {
        font-size: 1.1rem;
    }
    
    /* Progress bar'lar */
    .progress {
        height: 15px !important;
    }
}

@media (max-width: 576px) {
    /* Extra small ekranlar için */
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Containerlar */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Card padding'leri azalt */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Butonlar */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }
    
    /* Tablolar */
    .table {
        font-size: 0.75rem;
    }
    
    .table th, .table td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Muhtelif istatistikler bölümü */
    .row.text-center .col-md-3,
    .row.text-center .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Canvas grafikler daha küçük */
    canvas {
        max-height: 200px !important;
    }
}

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

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

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Small text improvements */
small, .small {
    font-size: 0.875rem;
}

/* Input groups */
.input-group-text {
    border: 1px solid #e2e8f0;
}

/* Footer spacing */
body {
    padding-bottom: 2rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

