/* Ana Değişkenler */
:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --header-height: 4rem;
    --transition-speed: 0.3s;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --danger-gradient: linear-gradient(135deg, #ef4444, #dc2626);
    --warning-gradient: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Ana Layout */
.main-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-width-collapsed);
}

/* Header */
.main-header {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0 !important;
    }

    .mobile-menu-button {
        display: flex;
    }
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Scrollbar Stilleri */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Text */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* ============================== */
/* ŞİRKET BİLGİLERİ SAYFASI STİLLERİ */
/* ============================== */

/* Form Bölümleri */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.form-section-title i {
    margin-right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--primary-gradient);
}

/* Form Grid — tek tanım (align-items: start ile) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.enhanced-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Form Grupları */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.form-label-required::after {
    content: " *";
    color: #ef4444;
}

/* Form Inputları */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
    -webkit-appearance: none;
}

/* 🔽 Global Select (dropdown) Styling – TÜM açılır menüler için */
select,
.form-select {
    background-color: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

select:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* DİKKAT:
   Burada BİLEREK option için stil vermiyoruz.
   Bazı tarayıcılarda dropdown listesi OS tarafından beyaz çiziliyor.
   option’a color vermeyince sistem siyah metin kullanıyor ve isimler kaybolmuyor.
*/

/* Buton Stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Kart Stilleri */
.member-card,
.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.member-card:hover,
.partner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.enhanced-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.enhanced-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Silme butonu için ek stil */
.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

/* Toast mesajları için stil */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--success-gradient);
}

.toast.error {
    background: var(--danger-gradient);
}

.toast.warning {
    background: var(--warning-gradient);
}

.toast.info {
    background: var(--primary-gradient);
}

/* Logo Yükleme Alanı Düzeltmeleri */
.logo-upload-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.logo-upload-area {
    border: 2px dashed rgba(59, 130, 246, 0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    box-sizing: border-box;
}

.logo-upload-area:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.logo-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 0.75rem;
    object-fit: contain;
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.logo-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* (Form Grid tanımı yukarıda birleştirildi) */

/* Logo konteynırını tam genişlik yap */
.form-grid .logo-upload-container {
    grid-column: 1 / -1;
}

/* Alternatif olarak logo için özel grid alanı */
@media (min-width: 1024px) {
    .form-grid.with-logo {
        grid-template-areas:
            "logo logo"
            "field1 field2"
            "field3 field4";
    }

    .logo-upload-container {
        grid-area: logo;
    }
}

/* Mobil için düzenlemeler */
@media (max-width: 768px) {
    .logo-upload-area {
        min-height: 140px;
        padding: 1.5rem;
    }

    .logo-preview {
        max-width: 120px;
        max-height: 120px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Input file gizleme - geliştirilmiş */
.hidden {
    display: none;
}

/* Logo yükleme alanı içindeki ikon ve metin */
.logo-upload-area i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: rgba(59, 130, 246, 0.7);
}

.logo-upload-area p {
    margin: 0.25rem 0;
    line-height: 1.4;
}

/* Sil butonu için stil */
.logo-remove-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-remove-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Loading state için */
.logo-upload-area.loading {
    opacity: 0.7;
    pointer-events: none;
}

.logo-upload-area.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Özel Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Grid Responsive (form-grid ve logo mobil tanımları yukarıda) */
@media (max-width: 768px) {
    .enhanced-form-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .form-input {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {

    .btn,
    .delete-btn,
    .logo-upload-area,
    .photo-upload-area {
        display: none !important;
    }

    .form-section {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 2px;
    }

    .btn {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Focus Styles for Accessibility */
.form-input:focus-visible,
.btn:focus-visible,
.delete-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Company Info Sayfası için Ek Stiller */
.company-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.company-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
}

.company-card.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 0.75rem;
    object-fit: contain;
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.logo-upload-area {
    border: 2px dashed rgba(59, 130, 246, 0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.logo-upload-area:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Grid Responsive */
@media (max-width: 768px) {
    .company-card {
        margin-bottom: 1rem;
    }

    .logo-upload-area {
        min-height: 140px;
        padding: 1.5rem;
    }
}

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background: #1f2937;
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 28rem;
    margin: 1rem;
}

/* Şirket Kartları için Metin Kısaltma Stilleri */
.company-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

.company-title-single {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-info {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tooltip için stiller */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 0.5rem;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 0.375rem solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: -0.25rem;
    z-index: 10;
}

/* Şirket Kartı İyileştirmeleri */
.company-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: fit-content;
    min-height: 140px;
}

.company-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.company-card.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.company-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.company-card-header {
    flex: 1;
    min-height: 80px;
}

.company-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive şirket kartları */
@media (max-width: 768px) {
    .company-title {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 1.4em;
    }

    .company-card {
        min-height: 120px;
    }
}

/* Compact şirket kartı varyantı */
.company-card-compact .company-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 1.4em;
}

.company-card-compact .company-logo {
    width: 40px;
    height: 40px;
}

.company-card-compact {
    min-height: 100px;
}

/* Şirket Listesi Grid İyileştirmeleri */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* ============================== */
/* DROPDOWN (SELECT) DÜZELTME BLOĞU */
/* Tüm company / meslek seçimlerinde geçerli */
/* ============================== */

/* Kapalı select görünümü (tasarım dili) */
select.form-select,
.form-input.form-select {
    background-color: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Açılan menüdeki satırlar (option) */
/* Bazı tarayıcılarda background sistemden gelse bile, text rengi mutlaka uygulanıyor */
select.form-select option,
.form-input.form-select option {
    background-color: #020617 !important;
    /* Çalışan tarayıcılarda koyu arka plan */
    color: #e5e7eb !important;
    /* Yazılar gri/beyaz – mutlaka görünür */
}

/* Ek güvenlik: tüm select'ler için default text rengi koyu değil, sadece form-select koyu değil */
select:not(.form-select) {
    color: inherit;
}


@media (max-width: 640px) {
    .companies-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================== */
/* SIDEBAR GENİŞLİK + LOGO KONTROLÜ */
/* ============================== */

/* Sidebar genişlikleri (root değişkenleriyle uyumlu) */
#sidebar {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Daraltılmış (collapsed) sidebar */
#sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

/* Logo görselleri */
.logo-image-large {
    height: 32px;
    width: auto;
    display: block;
}

.logo-image-small {
    height: 40px;
    width: 40px;
    object-fit: contain;
    display: block;
}

/* Geniş modda: büyük logo açık, küçük logo kapalı */
#sidebar:not(.collapsed) #sidebarLogo {
    display: flex;
}

#sidebar:not(.collapsed) #sidebarLogoSmall {
    display: none;
}

/* Collapsed modda: küçük logo açık, büyük logo kapalı */
#sidebar.collapsed #sidebarLogo {
    display: none;
}

#sidebar.collapsed #sidebarLogoSmall {
    display: flex;
}

/* Safari Compatibility Fixes for Censor/Blur */
.blur-sm {
    -webkit-filter: blur(4px) !important;
    filter: blur(4px) !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

canvas.blur-sm,
canvas[style*="blur"] {
    -webkit-filter: blur(8px) !important;
    filter: blur(8px) !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}