/* ============================================
   MAIN STYLE.CSS - Import Modular CSS Files
   ============================================ */

/* Import Modular CSS Files in Order */
@import url('core.css');
@import url('layout.css');
@import url('components.css');
@import url('forms.css');
@import url('mobile.css');
@import url('tablet.css');
@import url('desktop.css');

/* ============================================
   ADDITIONAL STYLES (Legacy/Browser Bar)
   ============================================ */

/* Browser Bar */
.browser-bar {
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.browser-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28ca42; }

.browser-nav {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.browser-nav-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.browser-url {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #666;
    margin: 0 1rem;
}

.browser-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.browser-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.browser-profile:hover {
    background: #f0f0f0;
}

.browser-profile-name {
    font-size: 0.75rem;
    color: #666;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f39200;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* App Layout */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative; /* Mobile menu toggle için referans noktası */
}

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 25%, #FFA500 50%, #87CEEB 75%, #4A90E2 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.login-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

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

.login-container {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FFA500 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.login-left > * {
    position: relative;
    z-index: 1;
}

.login-left h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.login-left p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.login-features {
    list-style: none;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.login-features li::before {
    content: "✓";
    background: rgba(255,255,255,0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.login-right {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.login-logo svg {
    height: 20px;
    max-width: 250px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Login logo - Desktop görünümde büyüt */
@media (min-width: 992px) {
    .login-logo svg,
    .login-logo svg#katman_1 {
        height: 32px !important;
        max-width: 400px !important;
        width: 400px !important;
        min-width: 400px !important;
    }
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-welcome {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f39200;
}

/* Print Styles */
@media print {
    .navbar, .btn, .no-print, .sidebar, .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Sidebar Profile */
.sidebar-profile-container {
    width: 100%;
}

.sidebar-profile-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: #ffffff;
    border: 1px solid #e7e9ed;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-profile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.sidebar-profile-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f39200 0%, #ff6b00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(243, 146, 0, 0.2);
}

.sidebar-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.sidebar-profile-fullname {
    font-weight: 600;
    color: #1f2d3d;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-meta {
    font-size: 0.7rem;
    color: #8a9099;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Role Badge - Rozet Box Düzeltmesi */
#sidebarRoleBadge {
    font-size: 0.7rem !important;
    color: #8a9099 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar-profile-action {
    color: #c1c7d0;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
}
