:root {
    --color-bg-light: #f5f7fa;
    --color-bg-dark: #1f2a37;
    --color-text-light: #1f2933;
    --color-text-dark: #e5e7eb;
    --color-primary: #2563eb;
    --color-danger: #ef4444;
    --color-success: #10b981;
    --transition-speed: 0.3s;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg-light);
    color: var(--color-text-light);
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.theme-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.12));
}

.error-container {
    text-align: center;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    max-width: 420px;
    width: 100%;
}

body.theme-dark .error-container {
    background: rgba(31, 41, 55, 0.92);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.error-container h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.error-container p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.error-button:hover,
.error-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.error-button-secondary {
    background: rgba(107, 114, 128, 0.9);
    color: #ffffff;
}

.error-button-secondary:hover,
.error-button-secondary:focus {
    background: rgba(75, 85, 99, 1);
    box-shadow: 0 12px 20px rgba(107, 114, 128, 0.25);
    color: #ffffff;
}

body.theme-dark .error-button-secondary {
    background: rgba(156, 163, 175, 0.2);
    color: #e5e7eb;
}

body.theme-dark .error-button-secondary:hover,
body.theme-dark .error-button-secondary:focus {
    background: rgba(156, 163, 175, 0.3);
    color: #f3f4f6;
}

@media (max-width: 768px) {
    .error-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .error-container h1 {
        font-size: 3rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .error-button {
        width: 100%;
        max-width: 280px;
    }
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(120, 113, 198, 0.15));
    font-family: 'Inter', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(6px);
    margin: -1rem;
}

body.theme-dark .login-card {
    background: rgba(31, 41, 55, 0.92);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

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

.login-header h1 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.6rem;
    color: var(--color-primary);
}

.login-header p {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .login-header p {
    color: rgba(229, 231, 235, 0.75);
}

.login-logo {
    height: 120px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.login-form .btn-primary {
    width: 100%;
    justify-content: center;
}

.login-footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 0.7;
}

.login-created-by {
    font-size: 0.85rem;
    opacity: 0.8;
}

.login-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.login-logo-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.login-logo-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.login-footer-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-speed) ease;
}

.login-logo-link:hover .login-footer-logo {
    opacity: 1;
}

body.theme-dark .login-footer-credits {
    border-top-color: rgba(148, 163, 184, 0.15);
    opacity: 0.8;
}

body.theme-dark .login-footer-logo {
    opacity: 0.85;
}

body.theme-dark .login-logo-link:hover .login-footer-logo {
    opacity: 1;
}

@media (max-width: 600px) {
    .login-footer-credits {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .login-created-by {
        font-size: 0.8rem;
    }
    
    .login-footer-logo {
        height: 20px;
    }
}

.login-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(15, 23, 42, 0.8);
}

body.theme-dark .login-form label {
    color: rgba(229, 231, 235, 0.8);
}

.login-form input {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.login-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

body.theme-dark .login-form input {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--color-text-dark);
}

/* KVKK Onay Bölümü Stilleri */
.login-form .kvkk-group {
    margin-bottom: 1.5rem;
    padding: 0;
}

.login-form .kvkk-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.login-form .kvkk-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.login-form .kvkk-text {
    display: block;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.85);
    user-select: text;
    flex: 1;
}

body.theme-dark .login-form .kvkk-text {
    color: rgba(229, 231, 235, 0.85);
}

.login-form .kvkk-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.login-form .kvkk-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

body.theme-dark .login-form .kvkk-link {
    color: #60a5fa;
}

body.theme-dark .login-form .kvkk-link:hover {
    color: #93c5fd;
}

@media (max-width: 600px) {
    .login-form .kvkk-group {
        margin-bottom: 1.25rem;
    }
    
    .login-form .kvkk-text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    .login-form .kvkk-label {
        gap: 0.625rem;
    }
    
    .login-form .kvkk-label input[type="checkbox"] {
        width: 1.125rem;
        height: 1.125rem;
        min-width: 1.125rem;
    }
}

/* KVKK Modal Stilleri */
.kvkk-modal-content {
    width: min(900px, 90%);
    max-height: 90vh;
}

.kvkk-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.kvkk-content {
    color: rgba(15, 23, 42, 0.9);
    line-height: 1.7;
}

body.theme-dark .kvkk-content {
    color: rgba(229, 231, 235, 0.9);
}

.kvkk-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.95);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

body.theme-dark .kvkk-content h3 {
    color: rgba(229, 231, 235, 0.95);
}

.kvkk-content h3:first-child {
    margin-top: 0;
}

.kvkk-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.kvkk-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.kvkk-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.kvkk-content li strong {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.95);
}

body.theme-dark .kvkk-content li strong {
    color: rgba(229, 231, 235, 0.95);
}

@media (max-width: 600px) {
    .kvkk-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .kvkk-modal-body {
        padding: 1rem;
        max-height: calc(95vh - 120px);
    }
    
    .kvkk-content h3 {
        font-size: 1rem;
        margin-top: 1.25rem;
    }
    
    .kvkk-content p,
    .kvkk-content li {
        font-size: 0.875rem;
    }
}

.btn-primary {
    width: auto;
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

@media (max-width: 600px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

.alert {
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #0f766e;
}

.alert-info {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.placeholder-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.9), rgba(219, 234, 254, 0.9));
    font-family: 'Inter', sans-serif;
}

body.theme-dark.placeholder-page {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
}

.placeholder-wrapper {
    text-align: center;
    padding: 2.5rem 3rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

body.theme-dark .placeholder-wrapper {
    background: rgba(17, 24, 39, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.placeholder-wrapper h1 {
    margin-top: 0;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.placeholder-wrapper p {
    margin-bottom: 1.4rem;
    color: rgba(15, 23, 42, 0.75);
}

body.theme-dark .placeholder-wrapper p {
    color: rgba(229, 231, 235, 0.75);
}

@media (max-width: 520px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin:0;
    }

    .placeholder-wrapper {
        padding: 2rem 1.5rem;
    }
}

.app-body {
    margin: 0;
    background: var(--color-bg-light);
    color: var(--color-text-light);
    min-height: 100vh;
}

.app-body.theme-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-dark);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 70px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.theme-dark .app-header {
    background: #1f2933;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.brand span {
    font-weight: 700;
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-button {
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Tam ekran ve tema değiştirme ikonları için büyük boyut */
.icon-button[data-fullscreen-toggle],
.icon-button[data-theme-toggle] {
    width: 46px;
    height: 46px;
}

.icon-button[data-fullscreen-toggle] i,
.icon-button[data-theme-toggle] i {
    font-size: 1.4rem;
}

.icon-button:hover,
.icon-button:focus {
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
}

body.theme-dark .icon-button:hover,
body.theme-dark .icon-button:focus {
    background: rgba(148, 163, 184, 0.15);
}

.theme-toggle [data-icon="sun"] {
    display: none;
}

body.theme-dark .theme-toggle [data-icon="sun"] {
    display: block;
}

body.theme-dark .theme-toggle [data-icon="moon"] {
    display: none;
}

.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    transition: background var(--transition-speed) ease;
}

.user-trigger img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.7;
}

body.theme-dark .user-name {
    color: #e5e7eb;
}

body.theme-dark .user-role {
    color: #d1d5db;
    opacity: 0.8;
}

.user-trigger:hover,
.user-trigger:focus {
    background: rgba(37, 99, 235, 0.1);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #ffffff;
    border-radius: 1rem;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: inherit;
    transition: background var(--transition-speed) ease;
}

.user-dropdown a:hover {
    background: rgba(37, 99, 235, 0.08);
}

.user-menu.open .user-dropdown {
    display: flex;
}

body.theme-dark .user-dropdown {
    background: #1f2937;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.app-main {
    flex: 1;
    display: flex;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 70px;
}

.app-sidebar {
    width: 260px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.6rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform var(--transition-speed) ease;
    flex-shrink: 0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    position: fixed
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.7rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    color: inherit;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

.sidebar-menu i {
    width: 18px;
    text-align: center;
}

.app-content {
    flex: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0rem 1rem 1rem 1rem;
}

body.theme-dark .app-content {
    background: #111827;
}

.content-scroll {
    flex: 1;
    padding: 0.5rem 0rem 0rem 0rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.app-footer {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
}

body.theme-dark .app-footer {
    opacity: 0.8;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    display: flex;
    align-items: center;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-created-by {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.footer-logo-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-logo-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-speed) ease;
}

.footer-logo-link:hover .footer-logo {
    opacity: 1;
}

body.theme-dark .footer-logo {
    opacity: 0.85;
}

body.theme-dark .footer-logo-link:hover .footer-logo {
    opacity: 1;
}

@media (max-width: 992px) {
    .app-footer {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-copyright {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .footer-credits {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-created-by {
        font-size: 0.85rem;
    }
    
    .footer-logo {
        height: 22px;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.98) 100%);
    border-radius: 1rem;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,#F7A437 100%);
    opacity: 0.8;
}

.page-header > div {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    opacity: 0.9;
}

/* Dark mode styles */
body.theme-dark .page-header {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(51, 65, 85, 0.6);
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3);
}

body.theme-dark .page-header::before {
    background: linear-gradient(90deg,#F7A437 100%);
    opacity: 0.7;
}

body.theme-dark .page-header h1 {
    color: #f1f5f9;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-dark .page-header p {
    color: #94a3b8;
    opacity: 0.85;
}

@media (max-width: 992px) {
    .page-header {
        margin: 1rem;
        width: 100%;
        max-width: calc(100% - 2rem);
        padding: 1.5rem 2rem;
    }

    .page-header h1 {
        font-size: 1.625rem;
    }

    .page-header p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 600px) {
    .page-header {
        margin: 0.75rem 0rem 0rem 0rem;
        max-width: calc(100% - 1.5rem);
        padding: 1.25rem 1.5rem;
        border-radius: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }

    .page-header p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .page-header::before {
        height: 3px;
    }
}

.card-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(4, 1fr);
}

.form-card,
.list-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.6rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    
    width: min(100%, 1600px);
    min-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .form-card,
    .list-card {
        padding: 1.2rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        border-radius: 1rem;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .form-card,
    .list-card {
        padding: 1rem;
        margin: 0 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
        border-radius: 0.85rem;
        box-sizing: border-box;
    }
}

body.theme-dark .form-card,
body.theme-dark .list-card {
    background: #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.form-card h2,
.list-card h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.grid-form {
    display: grid;
    
    gap: 1.1rem 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .form-group {
        margin: 0.75rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .form-group {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* iOS Safari zoom önleme */
    }
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.8rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-sizing: border-box;
}

body.theme-dark .form-group input,
body.theme-dark .form-group select,
body.theme-dark .form-group textarea {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* Form Field Error Styles */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    background-color: rgba(239, 68, 68, 0.05);
}

body.theme-dark .form-group input.field-error,
body.theme-dark .form-group select.field-error,
body.theme-dark .form-group textarea.field-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1);
}

.form-group input.field-error:focus,
.form-group select.field-error:focus,
.form-group textarea.field-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

body.theme-dark .error-message {
    color: #f87171;
}

.form-actions {
    grid-column: 8 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 400px;
    align-self: flex-end;
    
}

.form-actions .btn-primary {
    max-width: 100%;
    width: auto;
    min-width: 200px;
}

/* Yüksek çözünürlüklü ekranlar için form-actions genişlik kontrolü */
@media (min-width: 1400px) {
    .form-actions {
        max-width: 350px;
    }
}

@media (min-width: 1920px) {
    .form-actions {
        max-width: 400px;
    }
}

/* Araç form için form-actions düzenlemesi */
.arac-form .form-actions {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: row-reverse;
    
    width: 100%;
}

@media (max-width: 768px) {
    .arac-form .form-actions {
        justify-content: stretch;
    }
    
    .arac-form .form-actions button {
        width: 100%;
    }
}

.btn-secondary {
    border: none;
    background: rgba(148, 163, 184, 0.2);
    color: inherit;
    border-radius: 0.8rem;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
}

.btn-secondary.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--color-primary);
    font-weight: 600;
}

.btn-secondary.active:hover {
    background: rgba(37, 99, 235, 0.2);
}

.btn-icon {
    border: none;
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.btn-icon:hover {
    background: rgba(37, 99, 235, 0.2);
}

.btn-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.inline-form {
    display: inline;
}

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

@media (max-width: 600px) {
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .list-header h2 {
        font-size: 1.2rem;
        margin: 0;
    }
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 0.8rem;
    padding: 0.5rem 0.9rem;
    gap: 0.6rem;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    width: 900px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 0.9rem 0.8rem;
    text-align: center;
    border: none;
}

@media (max-width: 992px) {
    .data-table th,
    .data-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .data-table {
        min-width: 500px;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
}

.data-table thead th {
    border-bottom: 2px solid rgba(148, 163, 184, 0.3);
    padding-bottom: 0.9rem;
}

.data-table tbody tr {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.data-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

body.theme-dark .data-table thead th {
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

body.theme-dark .data-table tbody tr {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.data-table tbody tr.row-inactive {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

.data-table tbody tr.row-inactive:hover {
    background-color: rgba(239, 68, 68, 0.25) !important;
}

body.theme-dark .data-table tbody tr.row-inactive {
    background-color: rgba(239, 68, 68, 0.25) !important;
}

body.theme-dark .data-table tbody tr.row-inactive:hover {
    background-color: rgba(239, 68, 68, 0.35) !important;
}

.data-table tbody tr.row-assigned {
    background-color: rgba(34, 197, 94, 0.1) !important;
}

.data-table tbody tr.row-assigned:hover {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

body.theme-dark .data-table tbody tr.row-assigned {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

body.theme-dark .data-table tbody tr.row-assigned:hover {
    background-color: rgba(34, 197, 94, 0.2) !important;
}

.data-table tbody tr.row-inactive.row-assigned {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

body.theme-dark .data-table tbody tr.row-inactive.row-assigned {
    background-color: rgba(239, 68, 68, 0.25) !important;
}

.certificate-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.certificate-badge.expired {
    background-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
}

body.theme-dark .certificate-badge.expired {
    background-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.certificate-badge.warning {
    background-color: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.3);
    font-weight: 600;
}

body.theme-dark .certificate-badge.warning {
    background-color: rgba(234, 179, 8, 0.25);
    color: #fbbf24;
    border-color: rgba(234, 179, 8, 0.4);
}

.table-cell-with-avatar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.table-cell-with-avatar img,
.avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(148, 163, 184, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-subtext {
    font-size: 0.8rem;
    opacity: 0.7;
}

.badge-group {
    
    flex-direction: column;
    gap: 0.3rem;
}

.firma-count-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    min-width: 2.5rem;
}

.firma-count-badge.badge-count {
    background: rgba(37, 99, 235, 0.12);
    color: #1e40af;
}

body.theme-dark .firma-count-badge.badge-count {
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
}

.firma-count-badge.badge-zero {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

body.theme-dark .firma-count-badge.badge-zero {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.muted {
    background: rgba(148, 163, 184, 0.15);
    color: rgba(15, 23, 42, 0.6);
}

.status-toggle {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

.status-toggle.active {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-toggle.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

/* Delete modal should appear above event modal */
#deleteZiyaretModal {
    z-index: 130;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 1.25rem;
    width: min(720px, 90%);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

body.theme-dark .modal-content {
    background: #111827;
}

body.theme-dark .modal-header h2,
body.theme-dark .modal-header h3 {
    color: #e5e7eb;
}

body.theme-dark .modal-header i,
body.theme-dark .modal-footer i {
    color: #e5e7eb;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
        flex-shrink: 0;
    }

    .modal-body {
        padding: 1rem;
        font-size: 0.9rem;
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }
    
    #eventModal .modal-body {
        max-height: calc(95vh - 160px);
    }
    
    .modal-large {
        max-height: 95vh;
    }
}

.modal-header,
.modal-footer {
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-body {
    padding: 1.4rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 200px);
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: inherit;
}

body.theme-dark .modal-close {
    color: #e5e7eb;
}

body.theme-dark .modal-close:hover {
    color: #ffffff;
}

body.theme-dark .modal-close i {
    color: #e5e7eb;
}

body.theme-dark .modal-close:hover i {
    color: #ffffff;
}

body.theme-dark .user-trigger i {
    color: #e5e7eb;
}

body.theme-dark .icon-button {
    color: #e5e7eb;
}

body.theme-dark .icon-button:hover,
body.theme-dark .icon-button:focus {
    color: #ffffff;
}

body.theme-dark .icon-button i {
    color: #e5e7eb;
}

body.theme-dark .icon-button:hover i,
body.theme-dark .icon-button:focus i {
    color: #ffffff;
}

.help-text {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

@media (max-width: 1200px) {
    .profile-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.profile-info div {
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(148, 163, 184, 0.12);
}

body.theme-dark .profile-info div {
    background: rgba(55, 65, 81, 0.5);
}

/* ISG Profesyoneli Profil Sayfası - Özel Grid Düzeni (Sadece Masaüstü) */
@media (min-width: 992px) {
    .profile-info-isg {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
    }
    
    /* 1. Satır: Profil Resmi - Ad Soyad - Görev (3 kart, her biri 4 sütun) */
    .profile-info-isg > div:nth-child(1),
    .profile-info-isg > div:nth-child(2),
    .profile-info-isg > div:nth-child(3) {
        grid-column: span 4;
    }
    
    /* 2. Satır: Sertifika No - Sertifika Geçerlilik Tarihi - Giriş Kullanıcı Adı (3 kart, her biri 4 sütun) */
    .profile-info-isg > div:nth-child(4),
    .profile-info-isg > div:nth-child(5),
    .profile-info-isg > div:nth-child(6) {
        grid-column: span 4;
    }
    
    /* 3. Satır: Son Giriş Tarihi - Son Giriş Lokal IP - Son Giriş Public IP (3 kart, her biri 4 sütun) */
    .profile-info-isg > div:nth-child(7),
    .profile-info-isg > div:nth-child(8),
    .profile-info-isg > div:nth-child(9) {
        grid-column: span 4;
    }
}

/* Mobil ve tablet için normal profile-info davranışı */
@media (max-width: 991px) {
    .profile-info-isg {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-info-isg {
        grid-template-columns: 1fr;
    }
}

/* Firma Profil Sayfası - Özel Grid Düzeni (Sadece Masaüstü) */
@media (min-width: 992px) {
    .profile-info-firma {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
    }
    
    /* 1. Satır: Profil Resmi - Firma Adı - Yetkili Ad Soyad (3 kart, her biri 4 sütun) */
    .profile-info-firma > div:nth-child(1),
    .profile-info-firma > div:nth-child(2),
    .profile-info-firma > div:nth-child(3) {
        grid-column: span 4;
    }
    
    /* 2. Satır: Yetkili Telefon - Giriş Kullanıcı Adı - Atamalı İSG Profesyonelleri (3 kart, her biri 4 sütun) */
    .profile-info-firma > div:nth-child(4),
    .profile-info-firma > div:nth-child(5),
    .profile-info-firma > div:nth-child(6) {
        grid-column: span 4;
    }
    
    /* 3. Satır: Son Giriş Tarihi - Son Giriş Lokal IP - Son Giriş Public IP (3 kart, her biri 4 sütun) */
    .profile-info-firma > div:nth-child(7),
    .profile-info-firma > div:nth-child(8),
    .profile-info-firma > div:nth-child(9) {
        grid-column: span 4;
    }
}

/* Mobil ve tablet için normal profile-info davranışı */
@media (max-width: 991px) {
    .profile-info-firma {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-info-firma {
        grid-template-columns: 1fr;
    }
}

/* Admin Profil Sayfası - Özel Grid Düzeni (Sadece Masaüstü) */
@media (min-width: 992px) {
    .profile-info-admin {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
    }
    
    /* 1. Satır: Profil Resmi - Ad Soyad - E-posta - Rol (4 kart, her biri 3 sütun) */
    .profile-info-admin > div:nth-child(1),
    .profile-info-admin > div:nth-child(2),
    .profile-info-admin > div:nth-child(3),
    .profile-info-admin > div:nth-child(4) {
        grid-column: span 3;
    }
    
    /* 2. Satır: Son Giriş Tarihi - Son Giriş Lokal IP - Son Giriş Public IP (3 kart, her biri 4 sütun) */
    .profile-info-admin > div:nth-child(5),
    .profile-info-admin > div:nth-child(6),
    .profile-info-admin > div:nth-child(7) {
        grid-column: span 4;
    }
}

/* Mobil ve tablet için normal profile-info davranışı */
@media (max-width: 991px) {
    .profile-info-admin {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-info-admin {
        grid-template-columns: 1fr;
    }
}

/* Yönetici Profil Sayfası - Özel Grid Düzeni (Sadece Masaüstü) */
@media (min-width: 992px) {
    .profile-info-yonetici {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
    }
    
    /* 1. Satır: Profil Resmi - Ad Soyad - E-posta - Görev (4 kart, her biri 3 sütun) */
    .profile-info-yonetici > div:nth-child(1),
    .profile-info-yonetici > div:nth-child(2),
    .profile-info-yonetici > div:nth-child(3),
    .profile-info-yonetici > div:nth-child(4) {
        grid-column: span 3;
    }
    
    /* 2. Satır: Son Giriş Tarihi - Son Giriş Lokal IP - Son Giriş Public IP (3 kart, her biri 4 sütun) */
    .profile-info-yonetici > div:nth-child(5),
    .profile-info-yonetici > div:nth-child(6),
    .profile-info-yonetici > div:nth-child(7) {
        grid-column: span 4;
    }
}

/* Mobil ve tablet için normal profile-info davranışı */
@media (max-width: 991px) {
    .profile-info-yonetici {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-info-yonetici {
        grid-template-columns: 1fr;
    }
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
}
.stat-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1rem;
   
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

@media (max-width: 992px) {
    .stat-card {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 600px) {
    .stat-card {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .stat-info p {
        font-size: 0.85rem;
    }
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0px 10px rgba(15, 23, 42, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.65;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.stat-secondary { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stat-success { background: linear-gradient(135deg, #10b981, #22c55e); }
.stat-warning { background: linear-gradient(135deg, #f59e0b, #f97316); }
.stat-info { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.stat-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }

body.theme-dark .stat-card {
    background: #1f2937;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.info-banner,
.empty-state {
    border-radius: 1rem;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.info-banner.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.empty-state {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.empty-state i {
    font-size: 2.4rem;
    opacity: 0.8;
}

body.theme-dark .info-banner {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.theme-dark .info-banner.warning {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.toast-wrapper {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.toast {
    min-width: 260px;
    padding: 0.9rem 1.1rem;
    border-radius: 0.85rem;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }
.toast-warning { border-left: 4px solid #f59e0b; }

body.theme-dark .toast {
    background: #1f2937;
    color: #e2e8f0;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.5);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }
.toast-warning { border-left: 4px solid #f59e0b; }

.toast.closing {
    opacity: 0;
    transform: translateX(20px);
}

.toast-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
}

/* Desktop-only and mobile-only utility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Force display for mobile-only buttons and flex containers */
    .mobile-only.button,
    .mobile-only[class*="btn"],
    .mobile-only[class*="sidebar"] {
        display: block;
    }
    
    /* Ensure sidebar close button is always visible on mobile */
    .app-sidebar .sidebar-close,
    .sidebar-close.mobile-only,
    button.sidebar-close {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: inline-flex;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        min-height: 52px;
        padding: 0;
        background: rgba(37, 99, 235, 0.12) !important;
        border-radius: 0.75rem;
        transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
    }
    
    .mobile-menu-toggle i {
        font-size: 1.6rem !important;
        color: var(--color-primary);
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background: rgba(37, 99, 235, 0.2) !important;
        transform: scale(1.05);
    }
    
    body.theme-dark .mobile-menu-toggle {
        background: rgba(59, 130, 246, 0.15) !important;
    }
    
    body.theme-dark .mobile-menu-toggle:hover,
    body.theme-dark .mobile-menu-toggle:focus {
        background: rgba(59, 130, 246, 0.25) !important;
    }
    
    body.theme-dark .mobile-menu-toggle i {
        color: #60a5fa;
    }
}

@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        transform: translateX(-100%);
        z-index: 100;
        background: #0f172a;
        overflow-y: auto;
        overflow-x: hidden;
        transition: transform 0.3s ease;
        box-shadow: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        color: #e2e8f0;
    }

    body.theme-dark .app-sidebar {
        background: #0f172a;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-sidebar .sidebar-content {
        padding: 4rem 1.5rem 1rem;
        flex: 1;
        overflow-y: auto;
    }

    .app-sidebar .sidebar-section {
        margin-bottom: 1.5rem;
    }

    .app-sidebar .sidebar-heading {
        color: rgba(226, 232, 240, 0.7);
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .app-sidebar .sidebar-menu a {
        padding: 1rem;
        font-size: 1rem;
        color: #e2e8f0;
        border-radius: 0.85rem;
    }

    .app-sidebar .sidebar-menu li.active a {
        background: rgba(59, 130, 246, 0.25);
        color: #fff;
    }

    .app-sidebar .sidebar-menu a:hover {
        background: rgba(59, 130, 246, 0.15);
        color: #fff;
    }

    .app-sidebar .sidebar-close {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        width: 44px !important;
        height: 44px !important;
        border: none !important;
        background: rgba(148, 163, 184, 0.3) !important;
        color: #e2e8f0 !important;
        border-radius: 50% !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 1.4rem !important;
        z-index: 106 !important;
        transition: background var(--transition-speed) ease, transform var(--transition-speed) ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        flex-shrink: 0;
    }

    .app-sidebar .sidebar-close:hover,
    .app-sidebar .sidebar-close:focus {
        background: rgba(148, 163, 184, 0.45);
        color: #fff;
        transform: scale(1.05);
    }

    .sidebar-footer {
        position: sticky;
        bottom: 0;
        background: #0f172a;
        border-top: 1px solid rgba(148, 163, 184, 0.25);
        padding: 1.5rem;
        z-index: 102;
        margin-top: auto;
        display: block !important;
        flex-shrink: 0;
    }

    body.theme-dark .sidebar-footer {
        background: #0f172a;
        border-top-color: rgba(148, 163, 184, 0.25);
    }

    .mobile-user-info {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .mobile-user-info img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(148, 163, 184, 0.3);
    }

    .mobile-user-details {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        flex: 1;
    }

    .mobile-user-name {
        font-weight: 600;
        font-size: 1rem;
        color: #e2e8f0;
    }

    .mobile-user-role {
        font-size: 0.85rem;
        opacity: 0.75;
        color: #cbd5e1;
    }

    .mobile-menu-link {
        display: flex !important;
        align-items: center;
        gap: 0.9rem;
        padding: 0.9rem 1rem;
        border-radius: 0.75rem;
        color: #e2e8f0;
        text-decoration: none;
        transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .mobile-menu-link:hover {
        background: rgba(59, 130, 246, 0.2);
        color: #93c5fd;
    }

    .mobile-menu-link i {
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

    .mobile-menu-logout {
        color: #fca5a5;
    }

    .mobile-menu-logout:hover {
        background: rgba(239, 68, 68, 0.25);
        color: #fca5a5;
    }

    .content-scroll {
        padding: 0rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-header {
        
        width: calc(100% - 0rem) !important;
        max-width: calc(100% - 0rem) !important;
        padding: 1.5rem 2rem !important;
    }
    
    .form-card,
    .list-card {
        margin: 0rem !important;
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
    }

    .toast-wrapper {
        left: 1rem;
        right: 1rem;
        align-items: stretch;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Sidebar overlay - separate element */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .app-sidebar.open ~ .sidebar-overlay,
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .page-container {
        padding: 0 1rem 2rem;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 0rem;
    }
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.table-actions form {
    display: inline;
}

.grid-form.isg-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.log-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.1rem 1.5rem;
    align-items: end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.log-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    .form-row,
    .form-flex {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .log-filter-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .log-filter-actions {
        grid-column: span 2;
        justify-content: stretch;
    }
    
    .log-filter-actions .btn-primary,
    .log-filter-actions .btn-secondary {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .form-row,
    .form-flex {
        grid-template-columns: 1fr !important;
    }
    
    .log-filter-row {
        grid-template-columns: 1fr !important;
    }
    
    .log-filter-actions {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .log-filter-actions .btn-primary,
    .log-filter-actions .btn-secondary {
        width: 100%;
    }
}

.form-row .form-actions,
.form-flex .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Araç Form Section Styles */
.arac-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: rgba(148, 163, 184, 0.05);
    border-radius: 0.85rem;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

body.theme-dark .form-section {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.1);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(37, 99, 235, 0.9);
}

body.theme-dark .form-section-title {
    color: rgba(96, 165, 250, 0.9);
    border-bottom-color: rgba(96, 165, 250, 0.2);
}

.form-section-title i {
    font-size: 1rem;
}

.form-section .form-row {
    margin-top: 0;
}

.form-section .form-group {
    margin: 0;
}

/* Araç Form Responsive */
@media (max-width: 1200px) {
    .arac-form .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .arac-form .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .arac-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .arac-form {
        gap: 1rem;
    }
    
    .form-section {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .form-section-title {
        font-size: 0.95rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .form-section-title i {
        font-size: 0.9rem;
    }
    
    .arac-form .form-row {
        gap: 0.75rem;
    }
}

.log-filter-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.log-filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.log-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.search-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
}

.search-filter-actions {
    flex-shrink: 0;
}

.search-filter-actions .button-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 768px) {
    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-actions .button-group {
        width: 100%;
    }
    
    .search-filter-actions .button-group .btn-primary,
    .search-filter-actions .button-group .btn-secondary {
        flex: 1;
    }
}

.form-submit-group {
    display: flex;
    align-items: flex-end;
}

.form-submit-group .btn-primary {
    width: 100%;
}

.form-group-span-2 {
    grid-column: span 2;
}

.grid-form.evrak-turu-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.list-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-link {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
}

@media (max-width: 992px) {
    .log-filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row,
    .form-flex {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .form-row .form-actions,
    .form-flex .form-actions,
    .form-submit-group,
    .log-filter-actions {
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
    }

    .form-row .form-actions button,
    .form-flex .form-actions button,
    .form-submit-group button,
    .log-filter-actions button,
    .log-filter-actions .btn-link {
        width: 100%;
        max-width: 100%;
    }

    .form-group-span-2 {
        grid-column: 1 / -1 !important;
    }

    .list-header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .list-header-actions .btn-link {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .btn-link {
        justify-content: center;
        max-width: 100%;
    }
    
    .grid-form {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        display:block;
    }
    
    .form-actions {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
        align-self: stretch !important;
    }
    
    .form-actions .btn-primary {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

.grid-form.firma-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profesyonel-list {
    max-height: 210px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.8rem;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(148, 163, 184, 0.08);
}

.profesyonel-list label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.profesyonel-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-content.modal-profesyonel {
    width: min(90%, 520px);
}

/* Müşteri Firmalar Edit Modal - Form Row Layout */
#editFirmaModal .modal-body .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#editFirmaModal .modal-body .form-row .form-group {
    margin: 0;
    width: 100%;
}

#editFirmaModal .modal-body .form-row .form-group-profesyonel {
    display: flex;
    flex-direction: column;
    grid-column: span 1;
}

#editFirmaModal .modal-body .form-group-profesyonel .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#editFirmaModal .modal-body .form-group-profesyonel button[id*="Profesyonel"] {
    width: 100%;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    #editFirmaModal .modal-body .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #editFirmaModal .modal-body .form-row .form-group-profesyonel {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    #editFirmaModal .modal-body .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #editFirmaModal .modal-body .form-row .form-group-profesyonel {
        grid-column: span 1;
    }
}

/* Araç Modal Form Styles */
/* Araç Düzenleme Modal Özel Stilleri */
#editAracModal .modal-content {
    width: min(1100px, 95%);
    max-width: 95%;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

#editAracModal .modal-header {
    flex-shrink: 0;
}

#editAracModal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

#editAracModal .modal-body .arac-form {
    gap: 1.25rem;
}

#editAracModal .modal-body .form-section {
    padding: 1.25rem;
    margin: 0;
    margin-bottom: 0;
}

#editAracModal .modal-body .form-section:last-child {
    margin-bottom: 0;
}

#editAracModal .modal-body .form-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
}

#editAracModal .modal-body .form-row {
    gap: 1rem;
}

#editAracModal .modal-body .form-group {
    margin: 0;
}

#editAracModal .modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: inherit;
}

body.theme-dark #editAracModal .modal-footer {
    border-top-color: rgba(148, 163, 184, 0.1);
    background: inherit;
}

/* Mobil için dark theme modal-footer border */
@media (max-width: 768px) {
    body.theme-dark #editAracModal .modal-footer {
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
}

@media (max-width: 480px) {
    body.theme-dark #editAracModal .modal-footer {
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
}

/* Tablet Düzenlemeleri */
@media (max-width: 992px) {
    #editAracModal .modal-content {
        width: min(800px, 92%);
        display: flex;
        flex-direction: column;
        max-height: 90vh;
    }
    
    #editAracModal .modal-header {
        flex-shrink: 0;
    }
    
    #editAracModal .modal-body {
        padding: 1.25rem;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
    
    #editAracModal .modal-footer {
        flex-shrink: 0;
    }
    
    #editAracModal .modal-body .form-section {
        padding: 1rem;
    }
    
    #editAracModal .modal-body .arac-form .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

/* Mobil Düzenlemeleri */
@media (max-width: 768px) {
    #editAracModal .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem auto;
        display: flex;
        flex-direction: column;
    }
    
    #editAracModal .modal-header {
        flex-shrink: 0;
        padding: 1rem;
    }
    
    #editAracModal .modal-body {
        padding: 1rem;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(95vh - 200px);
    }
    
    #editAracModal .modal-footer {
        flex-shrink: 0;
        position: relative;
        z-index: 10;
        background: inherit;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
    }
    
    #editAracModal .modal-body .arac-form {
        gap: 1rem;
    }
    
    #editAracModal .modal-body .arac-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    #editAracModal .modal-body .form-section {
        padding: 1rem;
    }
    
    #editAracModal .modal-body .form-section-title {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.5rem;
    }
    
    #editAracModal .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    #editAracModal .modal-footer button {
        width: 100%;
    }
}

/* Küçük Mobil Düzenlemeleri */
@media (max-width: 480px) {
    #editAracModal .modal-content {
        width: 95%;
        
        margin: 0.5rem auto;
        border-radius: 0.75rem;
        display: flex;
        flex-direction: column;
    }
    
    #editAracModal .modal-header {
        padding: 0.875rem;
        flex-shrink: 0;
    }
    
    #editAracModal .modal-header h3 {
        font-size: 1.1rem;
    }
    
    #editAracModal .modal-body {
        padding: 0.875rem;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(78vh - 200px);
    }
    
    #editAracModal .modal-body .arac-form {
        gap: 0.875rem;
    }
    
    #editAracModal .modal-body .form-section {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    #editAracModal .modal-body .form-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    #editAracModal .modal-body .form-section-title i {
        font-size: 0.85rem;
    }
    
    #editAracModal .modal-body .form-row {
        gap: 0.75rem;
    }
    
    #editAracModal .modal-footer {
        padding: 0.875rem;
        gap: 0.5rem;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
        background: inherit;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
    }
}

/* Notification Card Styles */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 0.75rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-title i {
    font-size: 1.2rem;
}

.header-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    padding: 0;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 24px;
}

/* Specific Card Colors */
.card-primary .header-title { color: var(--color-primary); }
.card-primary .notification-badge { background: rgba(37, 99, 235, 0.12); color: var(--color-primary); }

.card-danger .header-title { color: #ef4444; }
.card-danger .notification-badge { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.card-warning .header-title { color: #f59e0b; }
.card-warning .notification-badge { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.card-danger-dark .header-title { color: #b91c1c; }
.card-danger-dark .notification-badge { background: rgba(185, 28, 28, 0.12); color: #b91c1c; }

.badge-danger { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #92400e; }
.badge-danger-dark { background: rgba(185, 28, 28, 0.15); color: #7f1d1d; }

/* Dark Theme Adjustments */
body.theme-dark .notification-header {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .card-primary .header-title { color: #60a5fa; }
body.theme-dark .card-primary .notification-badge { background: rgba(37, 99, 235, 0.25); color: #60a5fa; }

body.theme-dark .card-danger .header-title { color: #f87171; }
body.theme-dark .card-danger .notification-badge { background: rgba(239, 68, 68, 0.25); color: #f87171; }

body.theme-dark .card-warning .header-title { color: #fbbf24; }
body.theme-dark .card-warning .notification-badge { background: rgba(245, 158, 11, 0.25); color: #fbbf24; }

body.theme-dark .card-danger-dark .header-title { color: #ef4444; }
body.theme-dark .card-danger-dark .notification-badge { background: rgba(185, 28, 28, 0.25); color: #ef4444; }

/* Notification Grid on Dashboard */
.notification-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
  
    max-width: calc(100% - 0rem);
    box-sizing: border-box;
}





/* Tablet (max-width: 992px) - 2 columns */
@media (max-width: 1500px) and (min-width: 601px) {
    .notification-grid {
        display: grid !important;
        margin: 1rem;
        width: 100%;
        max-width: calc(100% - 2rem);
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .notification-grid {
        display: grid !important;
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
        grid-template-columns: 1fr !important;
    }
}

.notification-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 900px;
    box-sizing: border-box;
}

.notification-card.card-primary {
    border-top: 4px solid #2563eb;
}

.notification-card.card-danger-dark {
    border-top: 4px solid #b91c1c;
}
.notification-card.card-warning {
    border-top: 4px solid #f59e0b;
}
.notification-card.card-danger {
    border-top: 4px solid #ef4444;
}

body.theme-dark .notification-card {
    background: #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.notification-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.notification-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-text {
    display: block;
    color: inherit;
}

/* Detailed Notification Item Styles */
.notification-item-detailed {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.notification-item-detailed:last-child {
    margin-bottom: 0;
}

.notification-item-detailed:hover {
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.theme-dark .notification-item-detailed {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.15);
}

body.theme-dark .notification-item-detailed:hover {
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.item-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.15);
    color: inherit;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.item-action:hover {
    background: rgba(148, 163, 184, 0.25);
    transform: translateX(2px);
}

body.theme-dark .item-action {
    background: rgba(148, 163, 184, 0.2);
}

body.theme-dark .item-action:hover {
    background: rgba(148, 163, 184, 0.3);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .detail-row {
    color: rgba(229, 231, 235, 0.7);
}

.detail-row i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: #0f172a80;
    flex-shrink: 0;
}

body.theme-dark .detail-row i {
    color: rgba(148, 163, 184, 0.5);
}

.detail-row span {
    flex: 1;
}

.text-primary {
    color: var(--color-primary);
}

.text-danger {
    color: #dc2626;
    font-weight: 600;
}

.text-warning {
    color: #d97706;
    font-weight: 600;
}

body.theme-dark .text-primary {
    color: #60a5fa;
}

body.theme-dark .text-danger {
    color: #ef4444;
}

body.theme-dark .text-warning {
    color: #fbbf24;
}

/* Scrollbar Styling */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}


/* Mobile Small (max-width: 768px) - 1 column */
@media (max-width: 768px) {
    .notification-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        margin: 0rem;
        width: 100%;
        max-width: calc(100% - 0rem);
    }
    
    .notification-card {
        max-height: 350px;
        margin: 0;
        width: 100%;
    }
}

/* Planlama (Calendar) Styles */
.planlama-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.planlama-main-full {
    width: 100%;
}

.planlama-main {
    width: 100%;
}

.planlama-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    box-sizing: border-box;
}

.planlama-bottom-left,
.planlama-bottom-right {
    width: 100%;
}

.upcoming-events-list-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.upcoming-events-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.upcoming-events-list-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.upcoming-events-list-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.upcoming-events-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body.theme-dark .upcoming-events-list-scroll {
    scrollbar-color: #4b5563 #374151;
}

body.theme-dark .upcoming-events-list-scroll::-webkit-scrollbar-track {
    background: #374151;
}

body.theme-dark .upcoming-events-list-scroll::-webkit-scrollbar-thumb {
    background: #4b5563;
}

body.theme-dark .upcoming-events-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.calendar-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
}

body.theme-dark .calendar-card {
    background: #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

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

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.calendar-nav-btn {
    background: rgba(37, 99, 235, 0.1);
    border: none;
    border-radius: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
    color: var(--color-primary);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.calendar-nav-btn:hover {
    background: rgba(37, 99, 235, 0.2);
}

body.theme-dark .calendar-nav-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

body.theme-dark .calendar-nav-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}

.calendar-today-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-speed) ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .calendar-day-header {
    color: rgba(229, 231, 235, 0.7);
}

.calendar-day {
    background: #eaf5ff;
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-height: 100px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 2px solid transparent;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body.theme-dark .calendar-day {
    background: #39495f;
}

.calendar-day:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

body.theme-dark .calendar-day:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    border-color: var(--color-primary);
}

body.theme-dark .calendar-day.today {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.2));
}



.calendar-day.empty {
    background: transparent;
    cursor: default;
    min-height: 100px;
}

body.theme-dark .calendar-day.empty {
    background: transparent;
    cursor: default;
    min-height: 100px;
}

.calendar-day.empty:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.calendar-day.other-month {
    opacity: 0.4;
}

/* Past days styling */
.calendar-day.past {
    opacity: 0.5;
    background: #f3f4f6;
}

body.theme-dark .calendar-day.past {
    background: #1f2937;
    opacity: 0.4;
}

.calendar-day.past:hover {
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

body.theme-dark .calendar-day.past:hover {
    border-color: #374151;
}

.calendar-day.past .day-number {
    color: #9ca3af;
}

body.theme-dark .calendar-day.past .day-number {
    color: #6b7280;
}

.calendar-day.past .day-event {
    opacity: 0.7;
}

.calendar-day.past.today {
    opacity: 0.7;
}

/* Day events modal item */
.day-event-item {
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

body.theme-dark .day-event-item {
    background: #1f2937;
    border-color: #374151;
}

.day-event-item:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.theme-dark .day-event-item:hover {
    background: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Modern Close Button for Day Events Modal */
.btn-close-modal {
    border: none;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
    border-radius: 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.btn-close-modal:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

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

.btn-close-modal i {
    font-size: 0.9rem;
}

body.theme-dark .btn-close-modal {
    background: linear-gradient(135deg, #4b5563, #374151);
}

body.theme-dark .btn-close-modal:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
}

#dayEventsModal .modal-footer {
    justify-content: flex-end;
    padding: 1rem 1.5rem;
}

.day-number {
    font-weight: 700;
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .day-number {
    color: rgba(229, 231, 235, 0.9);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    overflow: hidden;
    margin-top: 0.25rem;
}

.day-event {
    background: #6366f1;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity var(--transition-speed) ease;
}

.day-event:hover {
    opacity: 0.9;
}

.day-event-more {
    background: rgba(15, 23, 42, 0.1);
    color: rgba(15, 23, 42, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

body.theme-dark .day-event-more {
    background: rgba(229, 231, 235, 0.1);
    color: rgba(229, 231, 235, 0.7);
}

/* Sidebar Styles */
.planlama-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upcoming-events-card,
.quick-stats-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
}

body.theme-dark .upcoming-events-card,
body.theme-dark .quick-stats-card {
    background: #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.upcoming-events-card .card-header,
.quick-stats-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.upcoming-events-card .card-header h3,
.quick-stats-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.upcoming-events-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 0.5rem;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(15, 23, 42, 0.6);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

body.theme-dark .empty-state {
    color: rgba(229, 231, 235, 0.6);
}

.upcoming-event-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    
}

body.theme-dark .upcoming-event-item {
    background: rgba(31, 41, 55, 0.5);
}

.upcoming-event-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

body.theme-dark .upcoming-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Event Type Title (at the top) */
.event-type-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.theme-dark .event-type-title {
    color: rgba(229, 231, 235, 0.9);
}

/* Date and Time combined */
.event-date-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    margin-bottom: 0.75rem;
}

body.theme-dark .event-date-time {
    color: rgba(229, 231, 235, 0.7);
}

.event-date-time i {
    color: rgba(15, 23, 42, 0.5);
}

body.theme-dark .event-date-time i {
    color: rgba(229, 231, 235, 0.5);
}

/* Event Title (Company Name) */
.event-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .event-title {
    color: rgba(229, 231, 235, 0.9);
}

/* Event Description */
.event-description {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.5;
    margin: 0.5rem 0;
    padding: 0.625rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 0.5rem;
    border-left: 2px solid rgba(15, 23, 42, 0.1);
}

body.theme-dark .event-description {
    color: rgba(229, 231, 235, 0.7);
    background: rgba(229, 231, 235, 0.05);
    border-left-color: rgba(229, 231, 235, 0.15);
}

.event-description i {
    color: rgba(15, 23, 42, 0.5);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

body.theme-dark .event-description i {
    color: rgba(229, 231, 235, 0.5);
}

.event-description span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Event Professional */
.event-professional {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    margin-top: 0.5rem;
}

body.theme-dark .event-professional {
    color: rgba(229, 231, 235, 0.7);
}

.event-professional i {
    color: rgba(15, 23, 42, 0.5);
}

body.theme-dark .event-professional i {
    color: rgba(229, 231, 235, 0.5);
}

/* Event Vehicle */
.event-vehicle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    margin-top: 0.5rem;
}

body.theme-dark .event-vehicle {
    color: rgba(229, 231, 235, 0.7);
}

.event-vehicle i {
    color: rgba(15, 23, 42, 0.5);
}

body.theme-dark .event-vehicle i {
    color: rgba(229, 231, 235, 0.5);
}

/* Dashboard - Yaklaşan Ziyaretler Section */
.upcoming-visits-section {
   
    box-sizing: border-box;
}

/* Vehicle Notifications Section */
.vehicle-notifications-section {
   
    width: 100%;
    box-sizing: border-box;
}

.vehicle-notification-item.notification-expired {
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
}

.vehicle-notification-item.notification-expired .notification-text {
    color: #991b1b;
}

.vehicle-notification-item.notification-expired .notification-text .text-danger {
    color: #dc2626;
    font-weight: 700;
}

.vehicle-notifications-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.vehicle-notifications-list::-webkit-scrollbar {
    width: 8px;
}

.vehicle-notifications-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.vehicle-notifications-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.vehicle-notifications-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.vehicle-notifications-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
}

body.theme-dark .vehicle-notifications-card {
    background: #1f2937;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3);
}

.vehicle-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

body.theme-dark .vehicle-notifications-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

.vehicle-notifications-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vehicle-notifications-title i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.vehicle-notifications-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: inherit;
}

.vehicle-notifications-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.vehicle-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Masaüstü modda 2 sütunlu grid yapısı */
@media (min-width: 992px) {
    .vehicle-notifications-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.vehicle-notifications-list::-webkit-scrollbar {
    width: 8px;
}

.vehicle-notifications-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.vehicle-notifications-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.vehicle-notifications-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.vehicle-notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 0.85rem;
    border-left: 4px solid #f59e0b;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.theme-dark .vehicle-notification-item {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.vehicle-notification-item:hover {
    background: rgba(245, 158, 11, 0.1);
    
}

body.theme-dark .vehicle-notification-item:hover {
    background: rgba(245, 158, 11, 0.15);
}

.notification-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 0.75rem;
    color: #f59e0b;
    font-size: 1.2rem;
}

body.theme-dark .notification-icon {
    background: rgba(245, 158, 11, 0.2);
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
}

.notification-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.8);
}

.notification-date i {
    font-size: 0.9rem;
}

.notification-action {
    flex-shrink: 0;
}

.notification-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.theme-dark .notification-link {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.notification-link:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.05);
}

body.theme-dark .notification-link:hover {
    background: rgba(96, 165, 250, 0.25);
}

/* Responsive Design for Vehicle Notifications */
@media (max-width: 992px) {
    .vehicle-notifications-section {
        margin: 1.25rem 0;
    }
    
    .vehicle-notifications-card {
        padding: 1.25rem;
    }
    
    .vehicle-notifications-title h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 991px) {
    .vehicle-notifications-list {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .vehicle-notifications-section {
        margin: 1rem 0;
    }
    
    .vehicle-notifications-card {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .vehicle-notifications-header {
        margin-bottom: 1rem;
        padding-bottom: 0.875rem;
    }
    
    .vehicle-notifications-title h2 {
        font-size: 1.15rem;
    }
    
    .vehicle-notifications-title i {
        font-size: 1.3rem;
    }
    
    .vehicle-notification-item {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .notification-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
    }
    
    .notification-text {
        font-size: 0.9rem;
    }
    
    .notification-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .vehicle-notifications-section {
        margin: 0.75rem 0;
    }
    
    .vehicle-notifications-card {
        padding: 0.875rem;
        border-radius: 0.875rem;
    }
    
    .vehicle-notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.75rem;
    }
    
    .vehicle-notifications-title h2 {
        font-size: 1.05rem;
    }
    
    .vehicle-notifications-title i {
        font-size: 1.2rem;
    }
    
    .vehicle-notification-item {
        padding: 0.75rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .notification-content {
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .notification-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .notification-date {
        font-size: 0.75rem;
    }
    
    .notification-link {
        width: 2rem;
        height: 2rem;
    }
}

.upcoming-visits-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 0px 5px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
}

body.theme-dark .upcoming-visits-card {
    background: #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.upcoming-visits-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

body.theme-dark .upcoming-visits-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

.upcoming-visits-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-visits-title h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .upcoming-visits-title h2 {
    color: rgba(229, 231, 235, 0.9);
}

.upcoming-visits-title i {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.upcoming-visits-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upcoming-visits-badge {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.upcoming-visits-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.625rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

body.theme-dark .upcoming-visits-link {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.upcoming-visits-link:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateX(2px);
}

body.theme-dark .upcoming-visits-link:hover {
    background: rgba(59, 130, 246, 0.25);
}

.upcoming-visits-link i {
    font-size: 0.9rem;
}

.upcoming-visits-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.upcoming-visits-list .empty-state {
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(15, 23, 42, 0.6);
}

body.theme-dark .upcoming-visits-list .empty-state {
    color: rgba(229, 231, 235, 0.6);
}

.upcoming-visits-list .empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
    display: block;
}

.upcoming-visits-list .empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Custom Scrollbar for Upcoming Visits List */
.upcoming-visits-list::-webkit-scrollbar {
    width: 8px;
}

.upcoming-visits-list::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

.upcoming-visits-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.upcoming-visits-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

body.theme-dark .upcoming-visits-list::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.05);
}

body.theme-dark .upcoming-visits-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
}

body.theme-dark .upcoming-visits-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

.upcoming-visit-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 140px;
}

.upcoming-visit-item .event-type-title {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.upcoming-visit-item .event-date-time {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.upcoming-visit-item .event-title {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.upcoming-visit-item .event-description {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.upcoming-visit-item .event-professional {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.upcoming-visit-item .event-vehicle {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

body.theme-dark .upcoming-visit-item {
    background: rgba(31, 41, 55, 0.5);
}

.upcoming-visit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    background: #ffffff;
}

body.theme-dark .upcoming-visit-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(31, 41, 55, 0.8);
}

/* Dashboard Responsive Styles */
@media (max-width: 1400px) {
    .upcoming-visits-section {
        margin: 1rem 1rem 2rem 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }
    
    .upcoming-visits-list {
        max-height: 500px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .upcoming-visits-section {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }
    
    .upcoming-visits-card {
        padding: 1rem;
    }
    
    .upcoming-visits-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .upcoming-visits-title h2 {
        font-size: 1.2rem;
    }
    
    .upcoming-visits-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        max-height: 450px;
    }
    
    .upcoming-visit-item {
        padding: 0.875rem;
    }
    
    .event-type-title {
        font-size: 0.9rem;
    }
    
    .event-date-time {
        font-size: 0.8rem;
    }
    
    .event-title {
        font-size: 0.95rem;
    }
    
    .event-description {
        font-size: 0.8rem;
        padding: 0.5rem;
        margin: 0.4rem 0;
    }
    
    .event-professional {
        font-size: 0.8rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .upcoming-visits-section {
        margin: 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
    }
    
    .upcoming-visits-card {
        padding: 0.75rem;
        border-radius: 1rem;
    }
    
    .upcoming-visits-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .upcoming-visits-title h2 {
        font-size: 1.1rem;
    }
    
    .upcoming-visits-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .upcoming-visits-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-height: 400px;
    }
    
    .upcoming-visit-item {
        padding: 0.75rem;
        border-radius: 0.5rem;
    }
    
    .event-type-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .event-date-time {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .event-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .event-description {
        font-size: 0.75rem;
        padding: 0.5rem;
        margin: 0.375rem 0;
    }
    
    .event-professional {
        font-size: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .upcoming-visits-section {
        margin: 0rem;
        width: calc(100% - 0rem);
        max-width: calc(100% - 0rem);
    }
    
    .upcoming-visits-card {
        padding: 1rem;
    }
    
    .upcoming-visits-title h2 {
        font-size: 1rem;
    }
    
    .upcoming-visits-badge {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
    }
    
    .upcoming-visits-link {
        width: 32px;
        height: 32px;
    }
    
    .upcoming-visits-list {
        gap: 0.5rem;
        max-height: 300px;
    }
    
    .upcoming-visit-item {
        padding: 0.6rem;
    }
    
    .event-type-title {
        font-size: 0.8rem;
    }
    
    .event-date-time {
        font-size: 0.7rem;
    }
    
    .event-title {
        font-size: 0.85rem;
    }
    
    .event-description {
        font-size: 0.7rem;
        padding: 0.4rem;
        margin: 0.3rem 0;
    }
    
    .event-professional {
        font-size: 0.7rem;
    }
}

/* Legacy styles for backward compatibility */
.event-date,
.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    margin-bottom: 0.25rem;
}

body.theme-dark .event-date,
body.theme-dark .event-time {
    color: rgba(229, 231, 235, 0.7);
}

.event-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.event-type-badge {
    background: #6366f1;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

body.theme-dark .event-professional {
    color: rgba(229, 231, 235, 0.7);
}

/* Quick Stats */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

body.theme-dark .stat-item {
    background: rgba(31, 41, 55, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .stat-label {
    color: rgba(229, 231, 235, 0.7);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Modal Styles */
.modal-large {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.selected-date-display {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.selected-date-display i {
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

body.theme-dark .modal-footer {
    border-top-color: rgba(148, 163, 184, 0.1);
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .planlama-container {
        grid-template-columns: 1fr;
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }
    
    .planlama-sidebar {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .upcoming-events-list {
        max-height: 300px;
    }
}

@media (max-width: 992px) {
    .planlama-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .calendar-card {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .upcoming-events-card,
    .quick-stats-card {
        padding: 1rem;
    }
    
    .modal-large {
        width: 95%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        max-height: calc(90vh - 180px);
    }
    
    #eventModal .modal-body {
        max-height: calc(90vh - 180px);
    }
}

/* Tablet Optimizations (max-width: 1024px) */
@media (max-width: 1024px) {
    .planlama-container {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
        gap: 1rem;
    }
    
    .calendar-card {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 90px;
        max-width: 90px;
        padding: 0.5rem;
    }
    
    .day-event {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
        line-height: 1.2;
    }
    
    .upcoming-events-card,
    .quick-stats-card {
        padding: 1rem;
    }
    
    .upcoming-events-list {
        max-height: 350px;
    }
    
    .event-type-title {
        font-size: 0.9rem;
    }
    
    .event-date-time {
        font-size: 0.8rem;
    }
    
    .event-title {
        font-size: 0.95rem;
    }
    
    .event-professional {
        font-size: 0.8rem;
    }
}

/* Mobile Optimizations (max-width: 768px) */
@media (max-width: 768px) {
    .planlama-container {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        gap: 0.75rem;
    }
    
    .calendar-card {
        padding: 0.75rem;
        border-radius: 1rem;
    }
    
    .calendar-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .calendar-header h2 {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .calendar-nav-btn,
    .calendar-today-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1rem;
        padding: 0.5rem;
        touch-action: manipulation;
    }
    
    .calendar-nav-btn i,
    .calendar-today-btn i {
        font-size: 0.9rem;
    }
    
    .calendar-today-btn {
        order: 1;
        flex: 1;
        justify-content: center;
    }
    
    .calendar-grid {
        gap: 0.25rem;
        padding: 0.25rem 0;
    }
    
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
        font-weight: 600;
    }
    
    .calendar-day {
        min-height: 65px;
        padding: 0.35rem;
        font-size: 0.75rem;
        border-radius: 0.5rem;
        touch-action: manipulation;
    }
    
    .day-number {
        font-size: 0.85rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }
    
    .day-events {
        gap: 0.15rem;
    }
    
    .day-event {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        line-height: 1.1;
        border-radius: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .day-event-more {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        border-radius: 0.25rem;
        min-width: 28px;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .upcoming-events-card,
    .quick-stats-card {
        padding: 0.75rem;
        border-radius: 1rem;
    }
    
    .upcoming-events-card .card-header h3,
    .quick-stats-card .card-header h3 {
        font-size: 1rem;
    }
    
    .upcoming-events-list {
        max-height: 300px;
    }
    
    .upcoming-event-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
    }
    
    .event-type-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .event-date-time {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .event-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .event-professional {
        font-size: 0.75rem;
    }
    
    .stats-list {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .modal-large {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-content {
        border-radius: 0;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    #eventModal form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-footer button {
        min-height: 44px;
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
        touch-action: manipulation;
    }
    
    #eventModal .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #eventModal .form-group select,
    #eventModal .form-group textarea {
        min-height: 44px;
        font-size: 0.95rem;
        touch-action: manipulation;
    }
    
    .selected-date-display {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
    .planlama-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upcoming-events-list-scroll {
        max-height: 400px;
    }
}

/* Small Mobile Optimizations (max-width: 480px) */
@media (max-width: 480px) {
    .planlama-container {
        margin: 0rem;
        max-width: calc(100% - 0.5rem);
        gap: 0.5rem;
    }
    
    .planlama-bottom {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .upcoming-events-list-scroll {
        max-height: 300px;
    }
    
    .calendar-card {
        padding: 0.5rem;
    }
    
    .calendar-header h2 {
        font-size: 1rem;
    }
    
    .calendar-day {
        min-height: 55px;
        max-width: 50px;
        padding: 0.25rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .day-event {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
    }
    
    .day-event-more {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
        min-width: 24px;
        min-height: 18px;
    }
    
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
    }
    
    .upcoming-events-card,
    .quick-stats-card {
        padding: 0.5rem;
    }
    
    .upcoming-event-item {
        padding: 0.6rem;
    }
    
    .modal-content {
        max-height: 95vh;
        width: 95%;
    }
    
    .modal-large {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 140px);
        padding: 0.75rem;
    }
    
    #eventModal .modal-body {
        max-height: calc(95vh - 160px);
        overflow-y: auto;
    }
    
    #eventModal .modal-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
    
    .modal-header,
    .modal-footer {
        padding: 0.75rem;
        flex-shrink: 0;
    }
    
    .modal-footer button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .modal-footer button span {
        display: inline;
    }
    
    .modal-footer button i {
        flex-shrink: 0;
    }
    
    .event-type-title {
        font-size: 0.8rem;
    }
    
    .event-date-time {
        font-size: 0.7rem;
    }
    
    .event-title {
        font-size: 0.85rem;
    }
    
    .event-professional {
        font-size: 0.7rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .modal-footer button {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .modal-footer button span {
        display: inline;
    }
    
    .modal-footer button i {
        margin: 0;
        flex-shrink: 0;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .calendar-day {
        min-height: 60px;
    }
    
    .upcoming-events-list {
        max-height: 200px;
    }
    
    .modal-body {
        max-height: calc(100vh - 120px);
    }
    
    #eventModal .modal-body {
        max-height: calc(100vh - 120px);
    }
    
    .modal-content {
        max-height: 100vh;
    }
    
    .modal-large {
        max-height: 100vh;
    }
}

/* Planlama Modal Specific Styles */
#eventModal .modal-content.modal-large {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#eventModal form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#eventModal .modal-body {
    display: flex;
    flex-direction: column;
    
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
}

#eventModal .selected-date-display {
    margin-bottom: 0;
}

#eventModal .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

#eventModal .form-row .form-group[style*="grid-column"] {
    grid-column: 1 / -1;
}

#eventModal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#eventModal .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.9);
}

body.theme-dark #eventModal .form-group label {
    color: rgba(229, 231, 235, 0.9);
}

#eventModal .form-group select,
#eventModal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    background: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-dark #eventModal .form-group select,
body.theme-dark #eventModal .form-group textarea {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

#eventModal .form-group select:focus,
#eventModal .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#eventModal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#eventModal .modal-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Modern Modal Footer Buttons */
.modal-footer-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-cancel {
    border: none;
    background: rgba(148, 163, 184, 0.15);
    color: rgba(15, 23, 42, 0.8);
    border-radius: 0.625rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.theme-dark .btn-cancel {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(229, 231, 235, 0.9);
}

.btn-cancel:hover {
    background: rgba(148, 163, 184, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.theme-dark .btn-cancel:hover {
    background: rgba(148, 163, 184, 0.3);
}

.btn-edit {
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-radius: 0.625rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-delete {
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border-radius: 0.625rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

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

.btn-save {
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-radius: 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.modal-footer button i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-footer-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-cancel,
    .btn-edit,
    .btn-delete,
    .btn-save {
        flex: 1;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .modal-footer button span {
        display: inline;
    }
    
    .modal-footer button i {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    #eventModal .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #eventModal .modal-body {
        gap: 1rem;
        max-height: calc(90vh - 180px);
        overflow-y: auto;
    }
    
    #eventModal .modal-content.modal-large {
        max-height: 90vh;
    }
    
    #eventModal .modal-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
    
    .modal-content {
        max-height: 100vh;
    }
    
    .modal-body {
        max-height: calc(90vh - 150px);
    }
    
    .modal-footer {
        flex-shrink: 0;
    }
}

/* Planlama Modal - Custom Firma Dropdown */
.custom-firma-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-firma-select-display {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    background: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    color: rgba(15, 23, 42, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-firma-select-display.has-selection {
    color: rgba(15, 23, 42, 0.9);
}

.custom-firma-select-display:hover {
    border-color: rgba(37, 99, 235, 0.5);
}

.custom-firma-select-display:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-firma-select-display .firma-placeholder {
    flex: 1;
}

.custom-firma-select-display i {
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.5);
    transition: transform 0.2s ease;
}

.custom-firma-select-wrapper:has(.custom-firma-select-dropdown[style*="block"]) .custom-firma-select-display i {
    transform: rotate(180deg);
}

body.theme-dark .custom-firma-select-display {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgba(229, 231, 235, 0.7);
}

body.theme-dark .custom-firma-select-display.has-selection {
    color: rgba(229, 231, 235, 0.9);
}

body.theme-dark .custom-firma-select-display i {
    color: rgba(229, 231, 235, 0.5);
}

.custom-firma-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 0.25rem;
}

body.theme-dark .custom-firma-select-dropdown {
    background: #1f2937;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-firma-search-wrapper {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.custom-firma-search {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.375rem;
    background: #ffffff;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-firma-search:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-firma-search-wrapper i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.5);
    font-size: 0.875rem;
    pointer-events: none;
}

body.theme-dark .custom-firma-search {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

body.theme-dark .custom-firma-search:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.theme-dark .custom-firma-search-wrapper i {
    color: rgba(229, 231, 235, 0.5);
}

.custom-firma-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.25rem;
}

.custom-firma-option {
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s ease;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.9);
}

.custom-firma-option:hover {
    background: rgba(37, 99, 235, 0.1);
}

body.theme-dark .custom-firma-option {
    color: rgba(229, 231, 235, 0.9);
}

body.theme-dark .custom-firma-option:hover {
    background: rgba(37, 99, 235, 0.2);
}

/* Scrollbar for firma options */
.custom-firma-options::-webkit-scrollbar {
    width: 6px;
}

.custom-firma-options::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 3px;
}

.custom-firma-options::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.custom-firma-options::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Planlama Modal - Custom Multi-Select */
.custom-multi-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-multi-select-display {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    background: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    color: rgba(15, 23, 42, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-multi-select-display:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.875rem;
    color: rgba(15, 23, 42, 0.5);
}

.custom-multi-select-display.has-selection {
    color: rgba(15, 23, 42, 0.9);
}

.custom-multi-select-display:hover {
    border-color: rgba(37, 99, 235, 0.5);
}

.custom-multi-select-display:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.theme-dark .custom-multi-select-display {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgba(229, 231, 235, 0.7);
}

body.theme-dark .custom-multi-select-display.has-selection {
    color: rgba(229, 231, 235, 0.9);
}

body.theme-dark .custom-multi-select-display:after {
    color: rgba(229, 231, 235, 0.5);
}

.custom-multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

body.theme-dark .custom-multi-select-dropdown {
    background: #1f2937;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-multi-select-wrapper .custom-select-search {
    position: relative;
    width: 100%;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0;
    padding: 0.75rem;
    z-index: 1;
}

body.theme-dark .custom-multi-select-wrapper .custom-select-search {
    background: #1f2937;
    border-bottom-color: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

.custom-multi-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.custom-multi-select-option:last-child {
    border-bottom: none;
}

.custom-multi-select-option:hover {
    background: rgba(37, 99, 235, 0.1);
}

body.theme-dark .custom-multi-select-option:hover {
    background: rgba(37, 99, 235, 0.2);
}

.custom-multi-select-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-multi-select-option span {
    flex: 1;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .custom-multi-select-option span {
    color: rgba(229, 231, 235, 0.9);
}

.custom-multi-select-option input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--color-primary);
}

body.theme-dark .custom-multi-select-option input[type="checkbox"]:checked + span {
    color: #60a5fa;
}

/* Diğer sebeb input */
#digerSebebWrapper input {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#digerSebebWrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.theme-dark #digerSebebWrapper input {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

/* Modern Toggle Switch */
.modern-toggle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.modern-toggle-label:hover {
    background-color: rgba(148, 163, 184, 0.08);
}

body.theme-dark .modern-toggle-label:hover {
    background-color: rgba(55, 65, 81, 0.3);
}

.modern-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-toggle-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    background-color: #cbd5e1;
    border-radius: 26px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.modern-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-toggle-input:checked + .modern-toggle-slider {
    background-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.modern-toggle-input:checked + .modern-toggle-slider::before {
    transform: translateX(22px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modern-toggle-input:focus + .modern-toggle-slider {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.modern-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

body.theme-dark .modern-toggle-text {
    color: var(--color-text-dark);
}

.modern-toggle-text i {
    color: #2563eb;
    font-size: 1rem;
}

.modern-toggle-input:checked ~ .modern-toggle-text i {
    color: #3b82f6;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

body.theme-dark .modern-toggle-slider {
    background-color: #4b5563;
}

body.theme-dark .modern-toggle-input:checked + .modern-toggle-slider {
    background-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

body.theme-dark .modern-toggle-slider::before {
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .modern-toggle-label {
        padding: 0.75rem;
    }
    
    .modern-toggle-text {
        font-size: 0.9rem;
    }
    
    .modern-toggle-slider {
        width: 44px;
        height: 24px;
    }
    
    .modern-toggle-slider::before {
        width: 18px;
        height: 18px;
        left: 3px;
        top: 3px;
    }
    
    .modern-toggle-input:checked + .modern-toggle-slider::before {
        transform: translateX(20px);
    }
}

