:root {
    /* Ana Renkler */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #8B5CF6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Gri Tonlar */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Durum Renkleri */
    --online: #10B981;
    --offline: #6B7280;
    --break: #F59E0B;
    --working: #3B82F6;

    /* Arkaplan */
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-dark: #1F2937;

    /* Metin */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;

    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-bg: #1F2937;
    --sidebar-text: #E5E7EB;
    --sidebar-hover: #374151;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Yarıçaplar */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Geçişler */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Login Sayfası */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: rotateIn 0.6s ease-out;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

.login-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.demo-info {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Masaüstü Görünüm Garantisi */
@media (min-width: 901px) {
    .sidebar {
        transform: none !important;
        display: block !important;
        visibility: visible !important;
        left: 0 !important;
    }

    .sidebar-toggle {
        display: none !important;
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 3px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.sidebar-logo svg {
    flex-shrink: 0;
}

.sidebar-user {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--sidebar-bg);
}

.status-online {
    background: var(--online);
}

.status-offline {
    background: var(--offline);
}

.status-break {
    background: var(--warning);
}

.user-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.user-details p {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.nav-item svg {
    flex-shrink: 0;
}

.badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--danger);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: auto;
    min-height: 100vh;
    overflow-x: hidden;
    flex: 1;
}

.top-bar {
    background: white;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.page-title-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--gray-700);
}

.content {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Tables */
.table-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

thead {
    background: var(--gray-50);
}

thead th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--gray-50);
}

tbody td {
    padding: 0.75rem 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

tbody td:first-child {
    max-width: 180px;
}

tbody td:last-child {
    max-width: none;
    white-space: nowrap;
}

/* Buttons */
.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Online/Offline/Working/Break Statuses */
.status-online {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.status-online::before {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-offline {
    background: #F3F4F6;
    color: #6B7280;
    border: 2px solid #D1D5DB;
    opacity: 0.8;
}

.status-offline::before {
    background: #9CA3AF;
}

.status-break {
    background: #FEF3C7;
    color: #92400E;
    border: 2px solid #F59E0B;
}

.status-break::before {
    background: #F59E0B;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-working {
    background: #DBEAFE;
    color: #1E40AF;
    border: 2px solid #3B82F6;
}

.status-working::before {
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* Task/Leave Statuses */
.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-approved {
    background: #D1FAE5;
    color: #065F46;
}

.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.status-in_progress {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

/* Priority Badges */
.priority-high {
    background: #FEE2E2;
    color: #991B1B;
}

.priority-medium {
    background: #FEF3C7;
    color: #92400E;
}

.priority-low {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
/* Responsive Design System */

/* Hamburger Menu Toggle Button */
.sidebar-toggle {
    display: none;
    /* Masaüstünde gizli */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    color: var(--gray-600);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
}

/* Tablet ve Mobil (900px altı) */
/* Not: 1024px bazı küçük laptopları etkilediği için 900px'e çekildi */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.5);
        /* Overlay effect */
    }

    .main-content {
        margin-left: 0 !important;
        /* Sidebar kapalıyken alan */
        width: 100%;
        max-width: 100% !important;
        /* Masaüstü kısıtlamasını kaldır */
    }

    .sidebar-toggle {
        display: block !important;
        /* Mobilde kesinlikle görünür */
        background: #F3F4F6;
        border-radius: 6px;
        z-index: 1000;
    }

    /* Topbar düzenlemeleri */
    .top-bar {
        padding: 0.75rem 1rem;
    }

    .page-title-section h1 {
        font-size: 1.25rem;
    }

    .breadcrumb {
        display: none;
        /* Mobilde yer kaplamasın */
    }

    /* Container Padding Azalt */
    .content {
        padding: 1rem !important;
        overflow-x: hidden;
        /* Taşmayı engelle */
    }

    /* Grid Yapıları */
    .stats-grid,
    .customers-grid,
    .projects-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Sadece Mobil (Telefon) */
@media (max-width: 768px) {
    .top-bar-actions {
        gap: 0.5rem;
    }

    .notification-dropdown {
        position: fixed !important;
        top: 70px !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-height: 80vh !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    }

    .clock {
        display: none;
        /* Mobilde saati gizle, yer kazan */
    }

    /* Kartlar ve Konteynerlar */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-header button {
        width: 100%;
        justify-content: center;
    }

    /* Tablolar - Yatay Kaydırma */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.5rem;
        /* Card padding telafisi */
        padding: 0 1.5rem;
    }

    table {
        min-width: 600px;
        /* Tabloyu zorla genişlet */
    }

    /* Modallar */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Login Ekranı */
    .login-box {
        padding: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

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

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

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

/* ===================================== */
/* DASHBOARD MOBILE RESPONSIVE STYLES */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* Mesai Kontrol Paneli - Grid 2 sütun */
    .attendance-control-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Announcement cards - mobil uyumlu */
    .announcement-card {
        margin-bottom: 0.75rem !important;
        padding: 0.875rem 1rem !important;
    }

    .announcement-card h4 {
        font-size: 0.9375rem !important;
    }

    .announcement-card p {
        font-size: 0.8125rem !important;
    }

    /* Mesai Kontrol Paneli - Mobil Layout */
    .attendance-control-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 0.5rem !important;
    }

    /* Durum - Tam genişlik (1. satır) */
    .attendance-control-grid>div:nth-child(1) {
        grid-column: 1 / -1 !important;
    }

    /* Mola - Tam genişlik (2. satır) */
    .attendance-control-grid>div:nth-child(2) {
        grid-column: 1 / -1 !important;
    }

    /* Bugün - Sol (3. satır) */
    .attendance-control-grid>div:nth-child(3) {
        grid-column: 1 / 2 !important;
    }

    /* Bu Hafta - Sağ (3. satır) */
    .attendance-control-grid>div:nth-child(4) {
        grid-column: 2 / 3 !important;
    }

    /* Stat kartları padding */
    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Görevler ve İzinler Grid - Tek Sütun */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Mesai panel başlık */
    .card h2[style*="font-size: 1.125rem"] {
        font-size: 1rem !important;
    }

    /* Mesai kutucuk içi başlıklar */
    .card h3[style*="font-size: 0.875rem"] {
        font-size: 0.8125rem !important;
    }

    /* Timer font boyutu */
    div[id*="Timer"] {
        font-size: 1.125rem !important;
    }

    /* Buton font boyutu */
    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    /* Poll butonları */
    button[onclick*="voteAnnouncement"] {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }
}

/* Çok küçük mobil cihazlar (480px ve altı) */
@media (max-width: 480px) {

    /* Mesai panel padding azalt */
    .card-body[style*="padding: 0.75rem"] {
        padding: 0.5rem !important;
    }

    /* Mesai kutucukları padding */
    .card-body>div[style*="grid-template-columns"]>div {
        padding: 0.625rem !important;
    }

    /* Başlık boyutları */
    .page-title-section h1 {
        font-size: 1.125rem !important;
    }

    .card-header h2 {
        font-size: 1.0625rem;
    }

    /* Stat card icon */
    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* İzin bilgi kartı */
    div[style*="linear-gradient(135deg, #667eea, #764ba2)"] {
        padding: 0.875rem !important;
    }

    div[style*="linear-gradient(135deg, #667eea, #764ba2)"]>div[style*="font-size: 2rem"] {
        font-size: 1.75rem !important;
    }

    /* Görev kartları */
    div[style*="border-left: 4px solid var(--primary)"] {
        padding: 0.625rem !important;
    }
}

/* ===================================== */
/* CRM TASKS PAGE MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* Filtreleme alanı */
    .card-header>div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        width: 100%;
    }

    .card-header select,
    .card-header input[type="text"] {
        min-width: 120px !important;
        flex: 1 1 120px !important;
    }

    /* Task detail panel */
    .task-detail-panel {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Tabs - yatay kaydırma */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
    }

    .tabs::-webkit-scrollbar {
        height: 3px;
    }

    .tab-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Card header - dikey düzenleme */
    .card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .card-header h2 {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .card-header>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Arama ve filtreler tam genişlik */
    .card-header input[type="text"],
    .card-header select {
        width: 100% !important;
        min-width: unset !important;
        flex: none !important;
    }

    .card-header input[type="text"] {
        padding-left: 2.25rem !important;
    }

    /* Butonlar tam genişlik */
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Task item - mobil layout */
    .task-item {
        padding: 0.875rem !important;
    }

    .task-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    /* Checkbox ve başlığı yan yana tut */
    .task-header>form,
    .task-header>.task-content {
        display: inline-flex;
        align-items: flex-start;
    }

    /* Checkbox ve content wrapper */
    .task-header {
        display: flex !important;
    }

    .task-header>form {
        position: absolute;
    }

    .task-item {
        position: relative;
    }

    .task-content {
        width: 100%;
        padding-left: 32px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .task-checkbox {
        width: 24px !important;
        height: 24px !important;
    }

    .task-title {
        font-size: 0.9375rem;
        line-height: 1.4;
        display: block;
        margin-bottom: 0.375rem;
    }

    .task-meta {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
        margin-top: 0 !important;
        padding-left: 0 !important;
    }

    .task-meta-item {
        font-size: 0.75rem !important;
    }

    /* Employee/Customer tags - mobil */
    .task-meta-item[style*="margin-left: auto"] {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 0.5rem;
    }

    .employee-tag,
    .customer-tag {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .employee-tag svg,
    .customer-tag svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* Task detail panel - mobil */
    .task-detail-header {
        padding: 1rem !important;
    }

    .task-detail-title {
        font-size: 1.125rem !important;
    }

    .task-detail-body {
        padding: 1rem !important;
    }

    .task-detail-section {
        margin-bottom: 1.25rem !important;
    }

    .task-detail-section-title {
        font-size: 0.8rem !important;
    }

    /* Comment items */
    .comment-item {
        gap: 0.5rem !important;
    }

    .comment-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.65rem !important;
    }

    .comment-content {
        padding: 0.5rem !important;
    }

    .comment-header {
        flex-direction: column;
        gap: 0.125rem;
    }

    .comment-author {
        font-size: 0.8rem !important;
    }

    .comment-time {
        font-size: 0.7rem !important;
    }

    .comment-text {
        font-size: 0.85rem !important;
    }

    /* File items */
    .file-item {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }

    .file-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .file-name {
        font-size: 0.8rem !important;
    }

    .file-meta {
        font-size: 0.7rem !important;
    }

    /* Step items */
    .step-item {
        padding: 0.375rem !important;
    }

    .step-checkbox {
        width: 16px !important;
        height: 16px !important;
    }

    .step-title {
        font-size: 0.85rem !important;
    }

    /* Add comment form */
    .add-comment-form textarea {
        min-height: 50px !important;
        font-size: 0.875rem !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* Content padding */
    .content {
        padding: 0.75rem !important;
    }

    /* Stats grid - 2 sütun yerine tek sütun */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .stat-card {
        padding: 0.75rem !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    .stat-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .stat-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Task item çok dar ekran */
    .task-item {
        padding: 0.75rem !important;
    }

    .task-title {
        font-size: 0.875rem !important;
    }

    /* Modal - tam ekran */
    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

/* ===================================== */
/* EMPLOYEE TASKS PAGE MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* Görev kartı içi bilgi grid */
    .hover-card>div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Hover card görev kartları */
    .hover-card {
        padding: 1rem !important;
    }

    /* Başlık ve öncelik satırı */
    .hover-card>div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .hover-card>div[style*="display: flex"]>div[style*="flex: 1"] h3 {
        font-size: 1rem !important;
    }

    .hover-card>div[style*="display: flex"]>div[style*="flex: 1"] p {
        font-size: 0.875rem !important;
    }

    /* Priority badge mobilde */
    .hover-card .status-badge.priority-high,
    .hover-card .status-badge.priority-medium,
    .hover-card .status-badge.priority-low {
        margin-left: 0 !important;
        align-self: flex-start;
    }

    /* Bilgi grid - tek sütun */
    .hover-card>div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }

    /* Grid içi label ve değer */
    .hover-card>div[style*="grid-template-columns"]>div>div:first-child {
        font-size: 0.7rem !important;
    }

    .hover-card>div[style*="grid-template-columns"]>div>div:last-child {
        font-size: 0.875rem !important;
    }

    /* Durum form satırı */
    .hover-card>div[style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .hover-card>div[style*="display: flex"][style*="gap: 0.75rem"]>div[style*="font-weight: 500"] {
        margin-bottom: 0 !important;
    }

    .hover-card>div[style*="display: flex"][style*="gap: 0.75rem"] form {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .hover-card>div[style*="display: flex"][style*="gap: 0.75rem"] form select {
        max-width: none !important;
        width: 100% !important;
    }

    /* Detay butonu */
    .hover-card>div[style*="display: flex"][style*="gap: 0.75rem"] button[style*="margin-left: auto"] {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Status badge'i formda göster */
    .hover-card form .status-badge {
        display: none !important;
    }

    /* Task status select mobil */
    .task-status-select {
        width: 100% !important;
        padding: 0.625rem 1rem !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* Hover card daha kompakt */
    .hover-card {
        padding: 0.875rem !important;
    }

    .hover-card>div[style*="display: flex"]>div[style*="flex: 1"] h3 {
        font-size: 0.9375rem !important;
        line-height: 1.4;
    }

    .hover-card>div[style*="display: flex"]>div[style*="flex: 1"] p {
        font-size: 0.8125rem !important;
        line-height: 1.5;
    }

    /* Bilgi grid daha kompakt */
    .hover-card>div[style*="grid-template-columns"] {
        padding: 0.625rem !important;
        gap: 0.5rem !important;
    }

    /* Form row - mobilde tek sütun */
    .form-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .form-row .form-group {
        width: 100% !important;
    }
}

/* ===================================== */
/* EMPLOYEE LEAVES PAGE MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* İzin hakkı kartı grid */
    .card[style*="linear-gradient(135deg, #10b981"] .card-body>div[style*="grid-template-columns: 2fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* 2 sütunlu layout - dikey düzen */
    div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* İzin hakkı kartı */
    .card[style*="linear-gradient(135deg, #10b981"] .card-body {
        padding: 1.25rem !important;
    }

    .card[style*="linear-gradient(135deg, #10b981"] .card-body>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    /* Başlık */
    .card[style*="linear-gradient(135deg, #10b981"] h2 {
        font-size: 1.25rem !important;
        text-align: center;
    }

    .card[style*="linear-gradient(135deg, #10b981"] p {
        font-size: 0.875rem !important;
        text-align: center;
    }

    /* Kalan ve Toplam gün - yan yana */
    .card[style*="linear-gradient(135deg, #10b981"] .card-body>div>div:nth-child(2),
    .card[style*="linear-gradient(135deg, #10b981"] .card-body>div>div:nth-child(3) {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }

    /* Büyük sayılar */
    .card[style*="linear-gradient(135deg, #10b981"] div[style*="font-size: 3rem"] {
        font-size: 2.25rem !important;
    }

    /* Tablo - responsive */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        min-width: 500px;
    }

    /* Tablo hücreleri */
    table th,
    table td {
        padding: 0.625rem 0.5rem !important;
        font-size: 0.8125rem !important;
    }

    /* Form buton */
    .btn-block {
        padding: 0.75rem 1rem !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* İzin kartı daha kompakt */
    .card[style*="linear-gradient(135deg, #10b981"] .card-body {
        padding: 1rem !important;
    }

    .card[style*="linear-gradient(135deg, #10b981"] h2 {
        font-size: 1.125rem !important;
    }

    .card[style*="linear-gradient(135deg, #10b981"] div[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    /* Tablo daha kompakt */
    table th,
    table td {
        padding: 0.5rem 0.375rem !important;
        font-size: 0.75rem !important;
    }

    /* Status badge küçültme */
    .status-badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* ===================================== */
/* ADMIN CRM ACCOUNT PAGE MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* Balance cards - 2 sütun yerine 3 */
    .balance-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Müşteri seçici genişlik */
    #customerSelect {
        min-width: 200px !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Card header - dikey düzen */
    .card-header>div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        width: 100%;
        gap: 0.75rem !important;
    }

    /* Müşteri seçici tam genişlik */
    #customerSelect {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Yeni İşlem butonu tam genişlik */
    .card-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Filtreleme formu - dikey */
    div[style*="display: flex"][style*="justify-content: flex-end"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    div[style*="display: flex"][style*="justify-content: flex-end"] form {
        width: 100%;
    }

    div[style*="display: flex"][style*="justify-content: flex-end"] form select {
        flex: 1;
    }

    /* Balance cards - tek sütun */
    .balance-cards {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .balance-card {
        padding: 1rem !important;
    }

    .balance-label {
        font-size: 0.8rem !important;
    }

    .balance-value {
        font-size: 1.5rem !important;
    }

    /* Tablo - responsive */
    .card-body .table,
    .card-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card-body table {
        min-width: 600px;
    }

    /* Tablo hücreleri */
    table th,
    table td {
        padding: 0.625rem 0.5rem !important;
        font-size: 0.8125rem !important;
        white-space: nowrap;
    }

    /* İşlem butonları */
    table td div[style*="display: flex"][style*="gap: 0.5rem"] {
        gap: 0.25rem !important;
    }

    table td .btn-icon,
    table td button[style*="padding: 0.25rem"] {
        padding: 0.375rem !important;
    }

    table td .btn-icon svg,
    table td button svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Transaction type badge */
    .transaction-type-debit,
    .transaction-type-credit {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* Balance card daha kompakt */
    .balance-card {
        padding: 0.875rem !important;
    }

    .balance-value {
        font-size: 1.25rem !important;
    }

    /* Tablo daha kompakt */
    table th,
    table td {
        padding: 0.5rem 0.375rem !important;
        font-size: 0.75rem !important;
    }

    /* Card header başlık */
    .card-header h2 {
        font-size: 1rem !important;
    }
}

/* ===================================== */
/* ADMIN ATTENDANCE PAGE MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* İstatistik grid'i - 4 sütun yerine 3 */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Filtre formu - 3 sütun */
    form[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Filtre formu - 2 sütun */
    form[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* İstatistik grid - 2 sütun */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .stat-card {
        padding: 1rem !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Açık mesailer kartı başlık */
    .card-header h2 {
        font-size: 0.9375rem !important;
        flex-wrap: wrap;
    }

    .card-header h2 svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Tablo - yatay scroll */
    .table-container,
    .card-body>table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table,
    .card-body>table {
        min-width: 700px;
    }

    /* Tablo hücreleri */
    table th,
    table td {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    /* Mesai kapat butonu */
    .close-attendance-btn {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.75rem !important;
    }

    .close-attendance-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Durum badge */
    .status-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    /* Filtreleri temizle butonu */
    .btn-block {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* Filtre formu - tek sütun */
    form[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* İstatistik grid - 2 sütun kalsın ama daha kompakt */
    .stats-grid {
        gap: 0.5rem !important;
    }

    .stat-card {
        padding: 0.75rem !important;
    }

    .stat-value {
        font-size: 1.125rem !important;
    }

    .stat-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .stat-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Tablo daha kompakt */
    table th,
    table td {
        padding: 0.375rem !important;
        font-size: 0.75rem !important;
    }

    /* Card header başlık */
    .card-header h2 {
        font-size: 0.875rem !important;
    }
}

/* ===================================== */
/* ADMIN TASKS PAGE MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* İstatistik grid'i - 4 sütun yerine 2 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Tabs - yatay scroll */
    .tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 0.5rem !important;
    }

    .tabs .tab-item,
    .tabs a.tab-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }

    /* Card header - dikey düzen */
    .card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .card-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Tablo - yatay scroll */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        min-width: 800px;
    }

    /* Tablo hücreleri */
    table th,
    table td {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }

    /* İşlem butonları satırı */
    table td div[style*="display: flex"][style*="gap: 0.5rem"] {
        gap: 0.25rem !important;
    }

    .btn-sm {
        padding: 0.375rem 0.5rem !important;
    }

    .btn-sm svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Atanan kişi badge */
    table td div[style*="display: flex"][style*="flex-wrap: wrap"]>div {
        padding: 0.2rem 0.375rem !important;
        font-size: 0.75rem !important;
    }

    table td div[style*="display: flex"][style*="flex-wrap: wrap"] .user-avatar {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
    }

    /* Modal içinde form row dikey */
    .modal-body .form-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .modal-body .form-row .form-group {
        width: 100% !important;
    }

    /* Modal footer butonları */
    .modal-footer {
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
    }

    .modal-footer .btn {
        width: 100% !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* İstatistik kartı daha kompakt */
    .stat-card {
        padding: 0.75rem !important;
    }

    .stat-value {
        font-size: 1.125rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    /* Tablo daha kompakt */
    table th,
    table td {
        padding: 0.375rem !important;
        font-size: 0.75rem !important;
    }

    /* Tabs daha kompakt */
    .tabs .tab-item,
    .tabs a.tab-item {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
}

/* ===================================== */
/* CUSTOMER PANEL MOBILE RESPONSIVE */
/* ===================================== */

/* Tablet ve altı (900px) */
@media (max-width: 900px) {

    /* Customer stats grid 3 sütun */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobil cihazlar (768px ve altı) */
@media (max-width: 768px) {

    /* Welcome section */
    .welcome-section h2 {
        font-size: 1.25rem !important;
    }

    .welcome-section p {
        font-size: 0.875rem !important;
    }

    /* Stats grid 2 sütun sonra 1 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Alert box - borç uyarısı */
    .alert {
        padding: 0.875rem !important;
    }

    .alert div[style*="display: flex"] {
        flex-direction: column !important;
        text-align: center;
        gap: 0.5rem !important;
    }

    .alert svg {
        width: 32px !important;
        height: 32px !important;
    }

    /* Card header */
    .card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .card-header h3 {
        font-size: 1rem !important;
    }

    .card-header .btn-sm,
    .card-header .btn-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Card body - overflow düzeltme */
    .card-body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 0.75rem !important;
    }

    .card {
        overflow: hidden;
    }

    /* Table responsive - scroll kaldırıldı, tablo ekrana sığacak */
    .table-responsive {
        overflow-x: visible !important;
        margin: 0;
        padding: 0;
        width: 100% !important;
    }

    .card-body {
        overflow-x: hidden !important;
        padding: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .table-responsive table,
    .card-body>table,
    table.table {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
    }

    /* Thead ve tbody tam genişlik */
    table thead,
    table tbody,
    table tr {
        width: 100% !important;
        display: table;
        table-layout: fixed;
    }

    table thead {
        display: table-header-group;
    }

    table tbody {
        display: table-row-group;
    }

    /* Tablo hücreleri - kompakt */
    table th,
    table td {
        padding: 0.5rem 0.375rem !important;
        font-size: 0.75rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal !important;
    }

    /* Customer tablolarında sütun gizleme - sadece 5+ sütunlu tablolar için */
    .table-responsive table th:nth-child(5),
    .table-responsive table td:nth-child(5),
    .table-responsive table th:nth-child(6),
    .table-responsive table td:nth-child(6) {
        display: none;
    }

    /* Açıklama sütunu gizle - sadece 5 sütunlu projeler tablosu */
    .table-responsive table th:nth-child(2),
    .table-responsive table td:nth-child(2) {
        display: none;
    }

    /* Status badge */
    .status-badge {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.375rem !important;
        white-space: nowrap;
    }

    /* Clock - topbar */
    .clock {
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
    }

    .clock svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Topbar page title */
    .page-title-section h1 {
        font-size: 1.125rem !important;
    }

    .breadcrumb {
        font-size: 0.75rem !important;
    }
}

/* Çok küçük mobil (480px ve altı) */
@media (max-width: 480px) {

    /* Welcome section */
    .welcome-section h2 {
        font-size: 1.125rem !important;
    }

    /* Stats grid tek sütun */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 0.875rem !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Tablo daha kompakt */
    table th,
    table td {
        padding: 0.375rem !important;
        font-size: 0.75rem !important;
    }

    /* Clock gizle, sadece saat göster */
    .clock #currentDate {
        display: none !important;
    }

    .clock span[style*="opacity: 0.5"] {
        display: none !important;
    }
}