/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* İmleç ve seçilebilirlik ayarları */
* {
    cursor: default;
    user-select: none;
}

/* Metin içeren elementler seçilebilir olmalı */
p, span, div, h1, h2, h3, h4, h5, h6, li, td, th, label, small {
    user-select: text;
    cursor: text;
}

/* Input ve textarea alanları */
input, textarea, select {
    cursor: text;
    user-select: text;
}

/* Butonlar ve tıklanabilir elementler */
button, .btn, a, [onclick], [role="button"], .nav-link, .mobile-nav-link {
    cursor: pointer !important;
    user-select: none !important;
}

/* Disabled elementler */
button:disabled, .btn:disabled, input:disabled, textarea:disabled, select:disabled {
    cursor: not-allowed !important;
    user-select: none !important;
}

/* Boş alanlar ve container'lar */
.container, .card, .card-body, .card-header, .page-header, .stats-grid, .admin-menu {
    cursor: default;
    user-select: none;
}

/* Tablo hücreleri - sadece içerik seçilebilir */
table {
    cursor: default;
    user-select: none;
}

td, th {
    cursor: text;
    user-select: text;
}

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #475569;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --light-color: #0f172a;
    --light-secondary: #1e293b;
    --border-color: #334155;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --input-bg: #0f172a;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Tüm elementler için Roboto fontu */
* {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.75rem 0;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Desktop Navigasyon - Modern Tasarım */
@media (min-width: 769px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.625rem 1.25rem;
        border-radius: 6px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer !important;
        user-select: none !important;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        white-space: nowrap;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }
    
    .user-menu {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: 0.5rem;
        padding-left: 0.75rem;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .user-name {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
    
    .user-menu .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobilde navigasyonu tamamen gizle */
@media (max-width: 768px) {
    .header-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .header-nav * {
        display: none !important;
        visibility: hidden !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .mobile-sidebar {
        display: flex !important;
    }
    
    .mobile-sidebar-overlay {
        display: block !important;
    }
}

/* Desktop'ta normal görünüm */
@media (min-width: 769px) {
    .header-content {
        flex-wrap: nowrap;
    }
    
    .header-nav {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        padding: 0 !important;
        pointer-events: auto !important;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    
    .header-logo {
        flex-shrink: 0;
    }
    
    .header-logo h1 {
        white-space: nowrap;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

/* Mobile Sidebar - Modern Tasarım */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

@media (max-width: 768px) {
    .mobile-sidebar-overlay {
        display: block;
    }
}

.mobile-sidebar-overlay.mobile-sidebar-overlay-active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: #0f172a;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
}

@media (max-width: 768px) {
    .mobile-sidebar {
        display: flex;
    }
}

/* Mobil sidebar scrollbar */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mobile-sidebar.mobile-sidebar-open {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mobile-sidebar-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-sidebar-close:active {
    transform: scale(0.95);
}

.mobile-sidebar-close span {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 300;
    color: #ffffff;
}

.mobile-sidebar-content {
    padding: 0.75rem 0;
    flex: 1;
    overflow-y: auto;
}

/* Tüm linkleri ve metinleri beyaz yap - Çok güçlü kurallar */
.mobile-sidebar-content,
.mobile-sidebar-content *,
.mobile-sidebar-content a,
.mobile-sidebar-content a:link,
.mobile-sidebar-content a:visited,
.mobile-sidebar-content a:active,
.mobile-sidebar-content a:focus,
.mobile-sidebar-content a:hover,
.mobile-sidebar-content .mobile-nav-link,
.mobile-sidebar-content .mobile-nav-link:link,
.mobile-sidebar-content .mobile-nav-link:visited,
.mobile-sidebar-content .mobile-nav-link:active,
.mobile-sidebar-content .mobile-nav-link:focus,
.mobile-sidebar-content .mobile-nav-link:hover,
.mobile-sidebar-content span {
    color: #ffffff !important;
    text-decoration: none !important;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: #ffffff !important;
    cursor: pointer !important;
    user-select: none !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 0.125rem 0.5rem;
    border-radius: 6px;
    background: transparent !important;
}

.mobile-nav-link,
.mobile-nav-link:visited,
.mobile-nav-link:link,
.mobile-nav-link:active,
.mobile-nav-link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: transparent !important;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-left-color: #3b82f6;
    text-decoration: none !important;
}

.mobile-nav-link span {
    color: #ffffff !important;
}

.mobile-nav-link span:first-child {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff !important;
}

.mobile-nav-link-danger {
    color: #ffffff !important;
    background: transparent !important;
}

.mobile-nav-link-danger,
.mobile-nav-link-danger:visited,
.mobile-nav-link-danger:link,
.mobile-nav-link-danger:active,
.mobile-nav-link-danger:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: transparent !important;
}

.mobile-nav-link-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ffffff !important;
    border-left-color: #ef4444;
    text-decoration: none !important;
}

.mobile-nav-link-danger span {
    color: #ffffff !important;
}

.mobile-user-menu {
    margin-top: auto;
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    position: sticky;
    bottom: 0;
}

.mobile-user-info {
    padding: 0.5rem 0.75rem 0.75rem;
}

.mobile-user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease;
}

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

.user-name {
    font-weight: 500;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 2rem;
    flex: 1;
}

@media (min-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 3rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 4rem;
    }
}

/* Login Sayfası */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    background-attachment: fixed;
    position: relative;
}

.login-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: block;
}

/* Logo yoksa gizle */
.login-logo img[src=""],
.login-logo img:not([src]) {
    display: none;
}

/* Responsive logo */
@media (max-width: 768px) {
    .login-logo {
        top: 1rem;
        left: 1rem;
    }
    
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
}

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

.login-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

.login-header h1 {
    color: #3b82f6;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.login-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin: 0;
}

.login-form {
    margin-top: 1.5rem;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

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

.page-header h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Cards */
.card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.corporate-card {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.corporate-header {
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
}

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

.card-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.7);
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.card-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3b82f6;
}

/* Admin Menu */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-menu-item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #1e3a8a 0%, #334155 100%);
}

.menu-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.menu-content h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.menu-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Forms */
.form {
    max-width: 100%;
}

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

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

.form-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.2s;
    min-height: auto;
    justify-content: flex-start;
    background: transparent;
}


.form-grid-item.full-width {
    grid-column: 1 / -1;
    min-height: auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label,
.form-grid-item label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group .required,
.form-grid-item .required {
    color: var(--danger-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="month"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.form-grid-item input[type="text"],
.form-grid-item input[type="email"],
.form-grid-item input[type="password"],
.form-grid-item input[type="date"],
.form-grid-item input[type="month"],
.form-grid-item input[type="time"],
.form-grid-item input[type="number"],
.form-grid-item select,
.form-grid-item textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.form-group input:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-grid-item input:focus,
.form-grid-item input[type="number"]:focus,
.form-grid-item select:focus,
.form-grid-item textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: #1e293b;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer !important;
    user-select: none !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    transform: none;
    will-change: background-color, box-shadow;
    vertical-align: middle;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background-color: #475569;
}

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

.btn-success:hover {
    background-color: #059669;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

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

.btn-warning:hover {
    background-color: #d97706;
}

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

.btn-info:hover {
    background-color: #2563eb;
}

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

.corporate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    transform: none;
    will-change: box-shadow, background-color;
}

.corporate-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.corporate-btn span {
    font-size: 1rem;
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
    box-shadow: var(--shadow);
}

.alert-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-left-color: #10b981;
    color: #10b981;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left-color: #ef4444;
    color: #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-left-color: #f59e0b;
    color: #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-left-color: #3b82f6;
    color: #3b82f6;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
}

.table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-color);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.badge-icon {
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-color: rgba(100, 116, 139, 0.3);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.detail-item span {
    color: var(--text-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    min-height: 40px;
}

.action-buttons form {
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.action-buttons .btn-sm {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
        position: relative;
        padding: 0 1rem;
    }
    
    .header-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
    }
    
    .header-logo h1 {
        font-size: 1.1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .header-nav *,
    .header-nav .nav-link,
    .header-nav .user-menu {
        display: none !important;
        visibility: hidden !important;
    }
}
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .admin-menu {
        grid-template-columns: repeat(4, 1fr);
    }
    
    @media (max-width: 1024px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .admin-menu {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 640px) {
        .stats-grid {
            grid-template-columns: 1fr;
        }
        
        .admin-menu {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 480px) {
        .admin-menu {
            grid-template-columns: 1fr;
        }
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
        margin: 0.5rem auto;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .header-logo h1 {
        font-size: 1.25rem;
    }
    
    .page-header {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-grid {
        gap: 1rem;
    }
    
    .form-grid-item {
        grid-column: 1 / -1;
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons form {
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

