:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-glow: 0 0 15px rgba(0, 210, 255, 0.4);
    --input-bg: rgba(255, 255, 255, 0.02);
    --sidebar-width: 280px;
    --sidebar-bg: rgba(10, 15, 30, 0.7);
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    --nav-hover: linear-gradient(90deg, rgba(0, 210, 255, 0.15), transparent);
    --accent-glow: radial-gradient(circle at top right, rgba(0, 210, 255, 0.1), transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(58, 123, 213, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 210, 255, 0.15) 0%, transparent 40%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
}

/* Login Page Wrapper */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    max-width: 120px;
    filter: drop-shadow(var(--text-glow));
}

.nav-menu {
    padding: 20px 10px;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: var(--nav-hover);
    color: var(--primary-color);
    text-shadow: var(--text-glow);
}

.nav-item i {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
    width: calc(100% - var(--sidebar-width));
    background: radial-gradient(circle at 50% -20%, rgba(0, 210, 255, 0.08), transparent 50%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(58, 123, 213, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-wrapper {
    position: relative;
    width: 400px;
    transition: width 0.3s ease;
}

.search-wrapper:focus-within {
    width: 450px;
}

.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px 14px 55px;
    border-radius: 16px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.user-info .name {
    display: block;
    font-weight: 600;
    font-size: 0.938rem;
}

.user-info .role {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Card Grid Enhancements */
.nav-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.nav-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    transform: translate(-10%, -10%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.nav-card:hover::before {
    transform: translate(5%, 5%);
}

.nav-card .icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-card:hover .icon-box {
    background: var(--primary-color);
    color: #000;
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.nav-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.nav-card .arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.nav-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.1);
}

.most-used-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.most-used-badge.second {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.quick-summary-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-metric {
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-v {
    display: flex;
    flex-direction: column;
}

.metric-v .v {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.metric-v .l {
    letter-spacing: 0.05em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 1024px) {
    .nav-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-card-grid {
        grid-template-columns: 1fr;
    }

    .quick-summary-bar {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
        gap: 15px;
    }

    .summary-metric {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        /* Increase padding for more space */
        min-width: 0;
        min-height: 130px;
        /* Ensure space for multi-line text */
        overflow: hidden;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
        border-radius: 16px !important;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .summary-metric .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0 auto;
    }

    .summary-metric .metric-v .v {
        font-size: 1.5rem;
        margin-bottom: 2px;
        font-weight: 900;
    }

    .summary-metric .metric-v .l {
        font-size: 0.75rem;
        font-weight: 600;
        opacity: 0.9;
        text-transform: none;
        line-height: 1.3;
        margin-top: 5px;
        color: rgba(255, 255, 255, 0.7);
    }
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
    /* Prevents overflow */
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-glow);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: block;
    white-space: nowrap;
}

.stat-card .trend {
    margin-top: 10px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend.up {
    color: #10b981;
}

.trend.down {
    color: #ef4444;
}

/* Data Table Section */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .content-card {
        padding: 15px !important;
        /* Reduced padding on mobile */
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

@media (min-width: 1024px) {
    .data-table {
        table-layout: fixed;
    }
}

.data-table th {
    text-align: left;
    padding: 18px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.data-table td {
    padding: 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
}

@media (min-width: 1024px) {

    .data-table th:nth-child(1),
    .data-table td:nth-child(1) {
        width: 35%;
    }

    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        width: 15%;
    }

    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        width: 22%;
    }

    .data-table th:nth-child(4),
    .data-table td:nth-child(4) {
        width: 28%;
    }
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr {
    transition: background 0.3s ease;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Quick Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    outline: none;
}

.action-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.action-btn.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

.action-btn:not(.primary):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.action-btn:hover i {
    transform: scale(1.2);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Vardiya Rozetleri */
.badge-sabah {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-ogle {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-full {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-aksam {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-antre {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-erken {
    background: rgba(156, 163, 175, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.badge-izin {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* SKT Specific Alert Styles */
.skt-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skt-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.skt-orange {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.skt-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.skt-critical {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    animation: skt-blink 1s infinite;
}

.skt-today {
    background: #fff;
    color: #ef4444;
    font-weight: 900;
    border: 2px solid #ef4444;
    animation: skt-blink 0.6s infinite;
}

.countdown-timer {
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@keyframes skt-blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow-pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
    }
}

.premium-glow {
    animation: glow-pulse 3s infinite;
}

/* Mobile Toggle Style */
.mobile-toggle {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--nav-hover);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        width: 280px;
        z-index: 1000;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
        min-width: 100vw;
    }

    .top-bar {
        padding: 10px 15px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .search-wrapper {
        width: auto;
        flex-grow: 1;
    }

    .search-wrapper:focus-within {
        width: auto;
    }

    .user-info {
        display: none;
        /* Mobilde isim yerine sadece avatar kalsın */
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 10px !important;
    }

    .top-bar {
        border-radius: 12px;
    }

    .stats-grid {
        flex-direction: column;
    }

    .data-table:not(.horizontal-table) thead {
        display: none;
    }

    .data-table:not(.horizontal-table) td {
        display: block;
        text-align: right;
        padding: 12px 15px;
        position: relative;
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.75rem;
    }

    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
}

/* Vardiya Çizelgesi Global Kart Görünümü (Web & Mobil) */
.horizontal-table thead,
.horizontal-table thead tr,
.horizontal-table thead th {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

.horizontal-table tbody {
    display: flex;
    flex-wrap: wrap;
    /* Web'de yan yana dizilme özelliği */
    gap: 30px;
    /* Boşluklar dengelendi */
    padding: 10px 0;
}

.horizontal-table tbody tr {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    /* SABİT 3x3 DÜZENİ - minmax ile daralma engellendi */
    flex: 1 1 700px;
    /* Web'de kartlar daha dengeli yayılsın */
    width: 100%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: fit-content;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    gap: 25px;
    margin-bottom: 35px;
    /* Alt boşluk optimize edildi */
}

.horizontal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.1);
}

.horizontal-table td:first-child {
    grid-column: 1 / -1;
    /* Personel ismi tam satır */
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    padding: 0 0 20px 0 !important;
    background: none !important;
    text-align: left;
    min-height: auto;
    aspect-ratio: auto !important;
    border-radius: 0;
}

/* Günlerin Kare Izgara Yapısı (Takvim Görünümü) */
.horizontal-table td:not(:first-child) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1 !important;
    /* TAM KARE */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 45px 15px 15px 15px;
    /* Üstten başlık alanı */
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    min-height: 140px;
    /* Minimum yükseklik artırıldı */
    width: 100% !important;
    /* Genişlik sabitlendi */
    min-width: 0;
    /* Çakışmayı engellemek için */
    box-sizing: border-box !important;
}

.horizontal-table td.empty-cell {
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    /* Boş olduğu belli olsun ama nizami dursun */
    cursor: default;
    pointer-events: none;
}

.horizontal-table td:not(:first-child):hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.horizontal-table td:not(:first-child)::before {
    content: attr(data-label);
    position: absolute;
    top: 15px;
    /* Okunaklı yerleşim */
    left: 2px;
    right: 2px;
    text-align: center;
    font-size: 0.85rem;
    /* Devasa etiketler */
    font-weight: 800;
    color: rgba(16, 185, 129, 0.8);
    /* Yeşilimsi vurgu */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.horizontal-table td.is-today {
    border: 3px solid #00d2ff !important;
    background: rgba(0, 210, 255, 0.1) !important;
    z-index: 5;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    position: relative;
}

.horizontal-table td.is-today.cell-full {
    border-color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.12) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
}

.horizontal-table td.is-today.cell-full::after {
    background: #8b5cf6;
}

.horizontal-table td.is-today.cell-aksam {
    border-color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.12) !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
}

.horizontal-table td.is-today.cell-aksam::after {
    background: #fbbf24;
}

.horizontal-table td.is-today.cell-antre {
    border-color: #22d3ee !important;
    background: rgba(34, 211, 238, 0.12) !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.35);
}

.horizontal-table td.is-today.cell-antre::after {
    background: #22d3ee;
}

.horizontal-table td.is-today.cell-erken {
    border-color: #e5e7eb !important;
    background: rgba(229, 231, 235, 0.12) !important;
    box-shadow: 0 0 15px rgba(229, 231, 235, 0.35);
}

.horizontal-table td.is-today.cell-erken::after {
    background: #e5e7eb;
}

.horizontal-table td.is-today::after {
    content: 'BUGÜN';
    position: absolute;
    top: 45px;
    /* Tarih etiketinin altına yaklaştırıldı, vardiya bilgisinden uzaklaştırıldı */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 900;
    background: #00d2ff;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.horizontal-table td.is-today.cell-sabah {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.horizontal-table td.is-today.cell-sabah::after {
    background: #10b981;
}

.horizontal-table td.is-today.cell-ogle {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.horizontal-table td.is-today.cell-ogle::after {
    background: #f59e0b;
}

.horizontal-table td.is-today.cell-izin {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.horizontal-table td.is-today.cell-izin::after {
    background: #ef4444;
}

.horizontal-table td.is-today::before {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .horizontal-table tbody tr {
        flex: 1 1 100%;
        /* Tablet ve altı için tam genişlik */
    }
}

@media (max-width: 768px) {
    .horizontal-table tbody {
        padding: 5px;
        gap: 15px;
    }

    .horizontal-table tbody tr {
        padding: 15px;
        border-radius: 20px;
        min-width: unset;
        flex: 1 1 100%;
        gap: 10px;
    }

    .horizontal-table tr {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .horizontal-table td:not(:first-child) {
        aspect-ratio: 1/1;
        padding: 25px 5px 5px 5px;
        border-radius: 12px;
    }

    .horizontal-table td:not(:first-child)::before {
        font-size: 0.55rem;
        top: 8px;
        opacity: 0.5;
    }

    .horizontal-table td:first-child {
        margin-bottom: 15px;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .search-wrapper {
        display: none;
        /* Çok küçük ekranlarda aramayı gizleyelim veya butona dönüştürelim */
    }

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

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

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* This clips the beam to the border shape */
}

/* Animated Border Beam (LED Effect) */
.login-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    /* Slight overflow to show on the border */
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 280deg,
            #00f2ff 320deg,
            #00d2ff 360deg);
    animation: rotate 4s linear infinite;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    /* This creates the "border" width */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
}

/* Inner Glow Effect */
.login-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-dark);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.9;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.branding-container {
    margin-bottom: 30px;
}

.branding-title {
    color: var(--primary-color);
    text-shadow: var(--text-glow);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    /* Increased from 5px */
    letter-spacing: -0.02em;
}

.branding-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Select and Option Styling for Dark Theme */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

select.form-control option {
    background-color: #1e293b;
    /* Dark slate matching the theme */
    color: #fff;
    padding: 15px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.6);
    filter: brightness(1.1);
}

.footer-text {
    margin-top: 30px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
    text-shadow: var(--text-glow);
}

.glow-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

/* Modal System */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 10px;
    /* Reduced from 20px */
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 98% !important;
        /* Force wider modals on mobile */
    }
}

@keyframes modalSlide {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

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

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 0px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px !important;
        /* Reduced from 20px */
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .top-bar {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .welcome-text span:first-child {
        display: none;
    }

    .welcome-text span:last-child {
        font-size: 0.9rem;
    }

    .status-panel-container {
        display: none;
        /* Mobilde status barı gizleyelim veya basitleştirelim */
    }

    .user-profile {
        gap: 8px;
    }

    .user-info {
        display: none;
    }
}

/* Premium Card Enhancements */
.login-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.15);
}

/* Global Footer Styles */
.footer-text {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 30px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.footer-text b {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    text-shadow: 0 0 10px var(--primary-color);
    opacity: 0.9;
}

.data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Dashboard Quick Summary Kartları ===== */
.summary-metric {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-metric:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.summary-metric .metric-v {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.summary-metric .metric-v .v {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.summary-metric .metric-v .l {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}