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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== CLEAN HEADER ========== */

/* Main Header Container */
.clean-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

/* Header Navigation */
.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: #333;
}

.role-badge.user {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    font-size: 1rem;
}

.nav-text {
    font-size: 0.85rem;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Notification Badge */
.notification-badge {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    color: white;
    font-size: 0.8rem;
    gap: 0.4rem;
}

.notification-icon {
    font-size: 1rem;
}

.notification-count {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Logout Button */
.logout-btn {
    background: rgba(255, 86, 86, 0.2);
    border: 2px solid rgba(255, 86, 86, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 86, 86, 0.4);
    border-color: rgba(255, 86, 86, 0.5);
    transform: translateY(-1px) scale(1.1);
    text-decoration: none;
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 3px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-nav {
        padding: 0 0.75rem;
    }
    
    .nav-menu {
        gap: 0.15rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .user-section {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .role-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .user-section {
        gap: 0.4rem;
    }
    
    .user-name {
        max-width: 80px;
        font-size: 0.8rem;
    }
    
    .notification-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .user-info {
        padding: 0.3rem 0.6rem;
    }
    
    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .logout-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .clean-header {
        padding: 0.5rem 0;
    }
    
    .header-nav {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }
    
    .logo-section {
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .role-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .user-section {
        gap: 0.3rem;
    }
    
    .user-name {
        display: none;
    }
    
    .notification-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .user-info {
        padding: 0.25rem 0.5rem;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .logout-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .mobile-toggle {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
    }
    
    .mobile-toggle span {
        width: 16px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 0.9rem;
    }
    
    .role-badge {
        display: none;
    }
    
    .notification-badge {
        padding: 0.2rem 0.4rem;
    }
    
    .user-info {
        padding: 0.2rem 0.4rem;
    }
}

/* Legacy styles removed */

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.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='%236b7280' 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.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Product Images */
.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    border: 2px solid #eee;
    max-width: 100%;
    padding: 4px;
    box-sizing: border-box;
    background: white;
}

.product-image-large {
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    border: 2px solid #eee;
    display: block;
    padding: 10px;
    box-sizing: border-box;
    background: white;
}

/* ========== MODERN LOGIN PAGE ========== */

/* Login Body */
.modern-login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

/* Animated Background */
.modern-login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B73FF 100%);
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Modern Login Container */
.modern-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Modern Login Card */
.modern-login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Header */
.modern-login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* Modern Alerts */
.modern-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: alertSlide 0.3s ease-out;
}

.modern-alert.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #fff;
}

.modern-alert.success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #fff;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-text {
    font-weight: 500;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern Form */
.modern-login-form {
    margin-bottom: 2rem;
}

.modern-form-group {
    margin-bottom: 1.5rem;
}

.form-input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.modern-form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.modern-form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.modern-form-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.modern-form-input.focused,
.modern-form-input.has-value {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

/* Floating Labels */
.floating-label {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.modern-form-input.focused + .floating-label,
.modern-form-input.has-value + .floating-label {
    transform: translateY(-0.5rem) scale(0.85);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Modern Login Button */
.modern-login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
}

.modern-login-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.modern-login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading Animation */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Demo Info */
.demo-info {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-icon {
    font-size: 1.1rem;
}

.demo-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.demo-accounts {
    margin-bottom: 1.5rem;
}

.demo-account {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.demo-account:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.account-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.account-icon.admin {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.account-info {
    flex: 1;
}

.account-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.account-creds {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* Setup Info */
.setup-info {
    text-align: center;
}

.setup-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.setup-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.setup-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-login-container {
        padding: 1rem;
    }
    
    .modern-login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .orb-1, .orb-2, .orb-3 {
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .modern-login-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .modern-form-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .input-icon {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .floating-label {
        left: 2.5rem;
        font-size: 0.9rem;
    }
    
    .demo-account {
        padding: 0.625rem 0.875rem;
    }
    
    .account-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

/* Legacy Login Page (Backup) */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

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

/* Card Header Flexbox */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Actions */
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Product Grid for Admin */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-image-container {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
}

.product-no-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    margin: 0 auto;
}

.product-info {
    padding: 1rem;
}

.product-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.product-sku {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-unit {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.product-min-stock {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-actions {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

/* Chart Styles */
.chart-container {
    padding: 1rem 0;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-label {
    min-width: 100px;
    font-weight: 500;
}

.chart-bar {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.chart-fill.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.chart-fill.warning {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.chart-value {
    min-width: 40px;
    text-align: right;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .navbar {
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        background: white;
        padding: 1rem;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .user-info {
        order: -1;
    }
    
    .logout-minimal {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .warehouse-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .product-image-large {
        max-width: 100%;
        max-height: 150px;
        width: auto;
        height: auto;
        object-fit: contain;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
    }
    
    .placeholder-icon {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 0 1rem;
    }
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.sidebar-item:hover {
    background: #f8f9fa;
}

.sidebar-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.sidebar-item.active {
    background: #667eea;
}

.sidebar-item.active a {
    color: white;
}

/* Warehouse Grid for User Pages */
.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.warehouse-item-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.warehouse-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.warehouse-item-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.warehouse-item-header h4 {
    margin: 0;
    color: #333;
}

.warehouse-item-info {
    padding: 1rem;
}

.warehouse-item-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.warehouse-item-actions {
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* ========== MODERN ÜRÜN SAYFASI TASARIMI ========== */

/* Modern Filter Card */
.modern-filter-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.filter-header h2 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.filter-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modern-filter-form {
    margin: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-input-wrapper {
    position: relative;
}

.filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.875rem;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.modern-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
    outline: none;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: #999;
    font-size: 0.9rem;
}

.modern-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.modern-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.modern-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.modern-btn.secondary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
}

.modern-btn.secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.category-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    z-index: 2;
}

.category-badge.finished {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.category-badge.semi {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #333;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.admin-btn.edit {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.admin-btn.edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.admin-btn.delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.admin-btn.delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
    text-decoration: none;
}

.add-product-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
}

.add-product-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
    text-decoration: none !important;
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Fix for stock status indicators */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.stock-status.normal {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stock-status.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stock-status.critical {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Fix for warehouse stock items */
.warehouse-stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.warehouse-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    font-size: 0.75rem;
}

.warehouse-amount {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Fix for product specs */
.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.spec-label {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

.spec-value {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Fix for search input wrapper */
.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Fix for modern action buttons */
.modern-action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    background: white !important;
    color: #495057 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
}

.action-icon {
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
}

.action-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.action-content h3 {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.action-content p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

/* Fix for quick buttons */
.quick-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
}

.quick-btn.add {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
}

.quick-btn.remove {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

/* Fix for table buttons */
.table-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
}

/* Mobile responsive fixes for icons */
@media (max-width: 768px) {
    .filter-icon {
        left: 0.75rem;
        font-size: 0.875rem;
        width: 18px;
        height: 18px;
    }
    
    .modern-input {
        padding: 0.625rem 0.625rem 0.625rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .admin-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .category-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.125rem 0.375rem;
        font-size: 0.625rem;
        gap: 0.125rem;
    }
    
    .modern-action-btn {
        padding: 0.875rem 1.25rem !important;
        gap: 0.5rem !important;
    }
    
    .action-icon {
        font-size: 1.25rem !important;
    }
    
    .action-content h3 {
        font-size: 0.875rem !important;
    }
    
    .action-content p {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .modern-btn, .admin-btn, .action-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }
    
    .add-product-btn {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .filter-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-badge {
        position: static;
        margin-bottom: 0.5rem;
        align-self: flex-start;
    }
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-modern h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Modern Product Grid */
.modern-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.modern-product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image Section */
.product-image-section {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e0e6ed;
}

.modern-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.modern-product-image:hover {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    font-size: 3rem;
    color: #adb5bd;
    opacity: 0.5;
    display: block;
    text-align: center;
}

/* Product Info Section */
.product-info-section {
    padding: 1.5rem;
}

.product-header {
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.product-sku {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
}

.product-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    display: block;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Stock Section */
.stock-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-top: 1px solid #e0e6ed;
}

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

.stock-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.total-stock {
    text-align: right;
}

.stock-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.stock-unit {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

/* Stock Indicator */
.stock-indicator {
    margin-bottom: 1rem;
}

.stock-bar {
    width: 100%;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stock-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stock-fill.normal {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.stock-fill.warning {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.stock-fill.critical {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.stock-status {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
}

.stock-status.normal {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stock-status.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stock-status.critical {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Warehouse Stocks */
.warehouse-stocks {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.warehouse-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warehouse-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.warehouse-name {
    font-size: 0.9rem;
    color: #495057;
}

.warehouse-amount {
    font-weight: 600;
    color: #2c3e50;
}

/* Product Actions */
.product-actions {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e0e6ed;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-image-section {
        height: 180px;
    }
    
    .modern-product-image {
        max-height: 180px;
        object-fit: contain;
        object-position: center;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .admin-product-card .product-image-section {
        height: 160px;
    }
    
    .admin-product-card .modern-product-image {
        max-height: 160px;
        object-fit: contain;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
}

/* Mobile Responsive for Modern Products */
@media (max-width: 768px) {
    .modern-filter-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-header h2 {
        font-size: 1.25rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        order: 4;
    }
    
    .modern-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-product-card {
        margin: 0 1rem;
    }
    
    .product-specs {
        grid-template-columns: 1fr;
    }
    
    .warehouse-stocks {
        padding: 0.75rem;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .total-stock {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .modern-filter-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .modern-product-card {
        margin: 0 0.5rem;
        border-radius: 15px;
    }
    
    .product-image-section {
        height: 150px;
        max-width: 100%;
    }
    
    .modern-product-image {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: contain;
        object-position: center;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .product-info-section {
        padding: 1rem;
    }
    
    .stock-section {
        padding: 1rem;
    }
    
    .product-actions {
        padding: 0.75rem 1rem;
    }
}

/* ========== MODERN STOCK SAYFASI TASARIMI ========== */

/* Modern Alerts */
.modern-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.modern-alert.success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
    border: 2px solid rgba(39, 174, 96, 0.2);
}

.modern-alert.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.05) 100%);
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.alert-content p {
    margin: 0;
    opacity: 0.8;
}

/* Modern Warehouse Selector */
.modern-warehouse-selector {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.selector-header h2 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.warehouse-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.warehouse-grid-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.warehouse-selector-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e0e6ed;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.warehouse-selector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.warehouse-selector-card.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.warehouse-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.warehouse-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 700;
}

.warehouse-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.selected-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modern Quick Actions */
.modern-quick-actions {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.actions-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.actions-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.modern-action-btn {
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    outline: none;
}

.modern-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.modern-action-btn.add {
    border-color: #27ae60;
}

.modern-action-btn.add:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
    border-color: #27ae60;
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.3);
}

.modern-action-btn.remove {
    border-color: #f39c12;
}

.modern-action-btn.remove:hover {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(230, 126, 34, 0.05) 100%);
    border-color: #f39c12;
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.3);
}

.modern-action-btn.view {
    border-color: #667eea;
}

.modern-action-btn.view:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #667eea;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 700;
}

.action-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modern Stock Form */
.modern-stock-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease-out;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h3 {
    margin: 0;
    font-weight: 700;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modern-form {
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.modern-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.modern-select, .modern-input, .modern-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

.modern-select:focus, .modern-input:focus, .modern-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.quantity-input-wrapper {
    position: relative;
}

.unit-display {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

.current-stock-info {
    margin-top: 0.75rem;
}

.stock-info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-info-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.stock-info-value {
    font-weight: 700;
    color: #2c3e50;
}

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

.modern-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    outline: none;
}

.modern-btn.submit {
    flex: 1;
}

.modern-btn.submit.add {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.modern-btn.submit.add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.modern-btn.submit.remove {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.modern-btn.submit.remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.modern-btn.cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e0e6ed;
}

.modern-btn.cancel:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.modern-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Modern Stock View */
.modern-stock-view {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stock-view-header {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-view-header h2 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stock-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.total-products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.view-toggle-btn {
    background: white;
    border: 2px solid #e0e6ed;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

/* Empty Stock State */
.empty-stock-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-stock-state h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-stock-state p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Stock Cards Grid */
.stock-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.stock-item-card {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stock-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e6ed;
}

.stock-card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
}

.product-sku {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* Category badges in stock cards */
.stock-item-card .category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 0.5rem;
}

.stock-item-card .category-badge.finished {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.stock-item-card .category-badge.semi {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.stock-amount-section {
    padding: 0 1.5rem 1rem;
}

.stock-amount {
    text-align: center;
    margin-bottom: 1rem;
}

.amount-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.amount-unit {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.stock-level-indicator {
    margin-bottom: 1rem;
}

.level-bar {
    width: 100%;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.level-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.level-fill.normal {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.level-fill.warning {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.level-fill.critical {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.level-status {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
}

.level-status.normal {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.level-status.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.level-status.critical {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.min-stock-info {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.stock-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.75rem;
}

.quick-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.quick-btn.add {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.quick-btn.add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.quick-btn.remove {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.quick-btn.remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* Modern Table */
.modern-table-wrapper {
    padding: 2rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.modern-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-table th,
.modern-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.modern-table th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.table-product-info strong {
    color: #2c3e50;
}

.table-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.table-badge.finished {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.table-badge.semi {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.normal {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-badge.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.status-badge.critical {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.table-btn.add {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.table-btn.add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.table-btn.remove {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.table-btn.remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Stock Page */
@media (max-width: 768px) {
    .modern-warehouse-selector,
    .modern-quick-actions,
    .modern-stock-form {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .selector-header,
    .actions-header,
    .stock-view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .warehouse-grid-selector {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .stock-cards-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .modern-table-wrapper {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .modern-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .modern-warehouse-selector,
    .modern-quick-actions,
    .modern-stock-form {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .stock-cards-grid {
        padding: 0.5rem;
    }
    
         .stock-item-card {
         border-radius: 12px;
     }
}

/* ========== MODERN ÜRÜN EKLEME FORMU ========== */

/* Add Product Button */
.add-product-btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    margin-left: 1rem;
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modern Add Product Form */
.modern-add-product-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease-out;
}

.modern-add-product-form .form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-add-product-form .form-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.modern-add-product-form .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modern-add-product-form .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modern-add-product-form .modern-form {
    padding: 2rem;
}

.modern-add-product-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-add-product-form .form-field {
    margin-bottom: 1.5rem;
}

.modern-add-product-form .modern-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.modern-add-product-form .modern-input,
.modern-add-product-form .modern-select,
.modern-add-product-form .modern-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: white;
    box-sizing: border-box;
}

.modern-add-product-form .modern-input:focus,
.modern-add-product-form .modern-select:focus,
.modern-add-product-form .modern-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modern-add-product-form .modern-textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.file-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-upload-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #e0e6ed;
    border-radius: 12px;
    color: #6c757d;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.file-upload-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.file-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: center;
}

/* Form Actions */
.modern-add-product-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modern-add-product-form .modern-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    outline: none;
    flex: 1;
    min-width: 140px;
}

.modern-add-product-form .modern-btn.submit.add {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    flex: 2;
}

.modern-add-product-form .modern-btn.submit.add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.modern-add-product-form .modern-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e0e6ed;
}

.modern-add-product-form .modern-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.modern-add-product-form .modern-btn.cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e0e6ed;
}

.modern-add-product-form .modern-btn.cancel:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Required Field Indicator */
.modern-add-product-form .modern-label::after {
    content: '';
}

.modern-add-product-form .modern-label:contains("*")::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}

/* Success/Error Validation States */
.modern-add-product-form .modern-input.is-valid,
.modern-add-product-form .modern-select.is-valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.modern-add-product-form .modern-input.is-invalid,
.modern-add-product-form .modern-select.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Placeholder Styling */
.modern-add-product-form .modern-input::placeholder,
.modern-add-product-form .modern-textarea::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Focus Ring Enhancement */
.modern-add-product-form .modern-input:focus,
.modern-add-product-form .modern-select:focus,
.modern-add-product-form .modern-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive for Add Product Form */
@media (max-width: 768px) {
    .modern-add-product-form {
        margin: 0 1rem 2rem;
    }
    
    .modern-add-product-form .modern-form {
        padding: 1.5rem 1rem;
    }
    
    .modern-add-product-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-add-product-form .form-actions {
        flex-direction: column;
    }
    
    .modern-add-product-form .modern-btn {
        flex: none;
        min-width: auto;
    }
    
    .filter-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .add-product-btn {
        margin-left: 0 !important;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modern-add-product-form {
        margin: 0 0.5rem 1.5rem;
        border-radius: 15px;
    }
    
    .modern-add-product-form .modern-form {
        padding: 1rem;
    }
    
    .modern-add-product-form .form-header {
        padding: 1rem 1.5rem;
    }
    
         .modern-add-product-form .form-header h3 {
         font-size: 1.1rem;
     }
}

/* ========== ADMIN ÜRÜN SAYFASI TASARIMI ========== */

/* Warehouse Summary */
.warehouse-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.summary-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 700;
}

.summary-address {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Admin Product Grid */
.admin-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Admin Stock Section */
.admin-stock-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-top: 1px solid #e0e6ed;
}

.admin-stock-section .stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-stock-section .stock-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.admin-stock-section .total-stock {
    text-align: right;
}

.admin-stock-section .stock-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.admin-stock-section .stock-unit {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

/* Admin Product Actions */
.admin-product-actions {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e0e6ed;
    display: flex;
    gap: 0.75rem;
}

.admin-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.admin-btn.edit {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.admin-btn.edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    color: white;
    text-decoration: none;
}

.admin-btn.delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.admin-btn.delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

/* Enhanced Warehouse Stocks for Admin */
.admin-stock-section .warehouse-stocks {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.admin-stock-section .warehouse-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stock-section .warehouse-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.admin-stock-section .warehouse-stock-item:last-child {
    border-bottom: none;
}

.admin-stock-section .warehouse-name {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.admin-stock-section .warehouse-amount {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Critical Stock Highlighting for Admin */
.admin-product-card .stock-status.critical {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Admin Stats Enhancement */
.filter-stats .filter-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Responsive for Admin Products */
@media (max-width: 768px) {
    .admin-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem;
    }
    
    .admin-product-card {
        margin: 0;
    }
    
    .admin-product-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        flex: none;
    }
    
    .warehouse-summary {
        margin: 1rem;
        padding: 1rem;
    }
    
    .filter-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .add-product-btn {
        margin-left: 0 !important;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-product-grid {
        margin: 0.5rem;
    }
    
    .admin-product-card {
        border-radius: 15px;
    }
    
    .admin-product-card .product-image-section {
        height: 120px;
        max-width: 100%;
    }
    
    .admin-product-card .modern-product-image {
        width: 100%;
        height: auto;
        max-height: 120px;
        object-fit: contain;
        object-position: center;
        padding: 6px;
        box-sizing: border-box;
    }
    
    .admin-stock-section {
        padding: 1rem;
    }
    
    .admin-product-actions {
        padding: 0.75rem 1rem;
    }
    
        .warehouse-summary {
        margin: 0.5rem;
        border-radius: 12px;
    }
}

/* ========== ENHANCED MOBILE OPTIMIZATIONS ========== */

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Make all buttons more touch-friendly */
    .btn, .modern-btn, .action-btn, .table-btn, .quick-btn {
        min-height: 44px;
        min-width: 44px;
        font-size: 0.9rem;
    }
    
    /* Improve card spacing on mobile */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    /* Better container padding */
    .container {
        padding: 0.5rem;
        margin-bottom: 0;
    }
    
    /* Improve form inputs on mobile */
    .form-control, .modern-input, .modern-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better table responsiveness */
    .table-responsive {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve alert spacing */
    .alert, .modern-alert {
        margin: 0.5rem 0;
        border-radius: 12px;
    }
    
    /* Better stats grid on mobile */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    /* Improve grid layouts */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Single column layout for small screens */
    .stats {
        grid-template-columns: 1fr;
    }
    
    /* Smaller text on very small screens */
    .card-title {
        font-size: 1.25rem;
    }
    
    /* Compact buttons */
    .btn-small {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Better form layout */
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Focus states for better keyboard navigation */
.modern-nav-link:focus,
.modern-logout-btn:focus,
.notification-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-header {
        background: linear-gradient(135deg, #333 0%, #000 100%);
    }
    
    .modern-nav-link,
    .modern-user-name,
    .modern-logo-text {
        color: white !important;
    }
    
    .role-badge {
        background: white;
        color: black;
        border: 2px solid black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    .modern-nav-link:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .modern-header,
    .notifications,
    .modern-logout-btn,
    .modern-nav-toggle {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
} 

/* ========== MODERN HEADER RESPONSIVE - IMPROVED ========== */

/* Better Mobile Header for all screen sizes */
@media (max-width: 1024px) {
    .modern-navbar {
        padding: 0.75rem 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .modern-logo-section {
        flex-shrink: 1;
        min-width: 0;
        max-width: 60%;
    }
    
    .modern-logo-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    /* More compact header */
    .modern-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .modern-navbar {
        padding: 0.5rem 0.75rem;
        min-height: 60px;
        position: relative;
    }
    
    /* Logo section optimization */
    .modern-logo-section {
        gap: 0.5rem;
        flex-shrink: 1;
        min-width: 0;
        max-width: 50%;
    }
    
    .modern-logo {
        gap: 0.5rem;
        min-width: 0;
    }
    
    .modern-logo-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .modern-logo-text {
        font-size: 1.1rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .role-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    /* Hide desktop navigation */
    .modern-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(320px, 85vw);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 4rem 1rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-nav-menu.active {
        right: 0;
    }
    
    /* Mobile menu overlay */
    .modern-nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .modern-nav-item {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .modern-nav-link {
        width: 100%;
        padding: 0.875rem 1rem;
        justify-content: flex-start;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }
    
    .modern-nav-link:hover,
    .modern-nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateX(4px);
    }
    
    .nav-icon {
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }
    
    /* User section optimization */
    .modern-user-section {
        gap: 0.5rem;
        flex-shrink: 0;
        justify-content: flex-end;
        max-width: 45%;
    }
    
    /* Hide notifications on mobile */
    .notifications {
        display: none;
    }
    
    /* Compact user profile */
    .user-profile {
        padding: 0.35rem 0.6rem;
        border-radius: 15px;
        min-width: auto;
        max-width: none;
        flex-shrink: 0;
    }
    
    .modern-user-info {
        display: none;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .user-dropdown-icon {
        display: none;
    }
    
    /* Compact logout button */
    .modern-logout-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.25rem;
        border-radius: 12px;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .modern-logout-btn span {
        font-size: 0.9rem;
    }
    
    /* Mobile toggle button */
    .modern-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        padding: 0.5rem;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-left: 0.25rem;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
    }
    
    .modern-nav-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .modern-navbar {
        padding: 0.4rem 0.5rem;
        min-height: 56px;
    }
    
    .modern-logo-section {
        gap: 0.4rem;
        max-width: 45%;
    }
    
    .modern-logo-icon {
        font-size: 1.4rem;
    }
    
    .modern-logo-text {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .role-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .modern-nav-menu {
        width: min(280px, 90vw);
        padding: 3.5rem 0.75rem 1.5rem;
    }
    
    .modern-nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        font-size: 1rem;
        margin-right: 0.6rem;
    }
    
    .modern-user-section {
        gap: 0.4rem;
        max-width: 50%;
    }
    
    .user-profile {
        padding: 0.3rem 0.5rem;
    }
    
    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .modern-logout-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.2rem;
    }
    
    .modern-logout-btn span {
        font-size: 0.85rem;
    }
    
    .modern-nav-toggle {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        padding: 0.4rem;
        margin-left: 0.2rem;
    }
}

@media (max-width: 360px) {
    /* Extra small screens */
    .modern-navbar {
        padding: 0.3rem 0.4rem;
    }
    
    .modern-logo-section {
        max-width: 40%;
    }
    
    .modern-logo-text {
        font-size: 0.9rem;
    }
    
    .role-badge {
        display: none;
    }
    
    .modern-user-section {
        max-width: 55%;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .modern-nav-menu {
        padding: 2rem 1rem 1rem;
        height: 100vh;
    }
    
    .modern-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .modern-nav-item {
        margin-bottom: 0.15rem;
    }
}

/* ========== STOCK SEARCH SECTION ========== */

.stock-search-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.search-header {
    margin-bottom: 1rem;
}

.search-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: #8e9aaf;
    font-style: italic;
}

.search-results-info {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.search-results-info span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Mobile responsive for search section */
@media (max-width: 768px) {
    .stock-search-section {
        margin: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .search-header h3 {
        font-size: 1.1rem;
    }
    
    .search-input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .filter-icon {
        left: 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stock-search-section {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    
    .search-header h3 {
        font-size: 1rem;
    }
    
    .search-input {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem;
        font-size: 0.85rem;
    }
    
    .search-results-info {
        padding: 0.5rem 0.75rem;
    }
    
    .search-results-info span {
        font-size: 0.8rem;
    }
} 

/* Filter Icon Fix - Daha spesifik tanım */
.modern-filter-form .filter-input-wrapper .filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999 !important;
    font-size: 0.875rem !important;
    z-index: 3 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
}

/* Modern Input Fix - Daha spesifik tanım */
.modern-filter-form .filter-input-wrapper .modern-input {
    width: 100% !important;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    background: white !important;
    outline: none !important;
    position: relative !important;
    z-index: 1 !important;
}

.modern-filter-form .filter-input-wrapper .modern-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.modern-filter-form .filter-input-wrapper .modern-input::placeholder {
    color: #999 !important;
    font-size: 0.9rem !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Filter Input Wrapper Fix */
.modern-filter-form .filter-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .modern-filter-form .filter-input-wrapper .filter-icon {
        left: 0.625rem !important;
        font-size: 0.75rem !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    .modern-filter-form .filter-input-wrapper .modern-input {
        padding: 0.625rem 0.625rem 0.625rem 2rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .modern-filter-form .filter-input-wrapper .filter-icon {
        left: 0.5rem !important;
        font-size: 0.7rem !important;
        width: 12px !important;
        height: 12px !important;
    }
    
    .modern-filter-form .filter-input-wrapper .modern-input {
        padding: 0.5rem 0.5rem 0.5rem 1.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .modern-filter-form .filter-input-wrapper .modern-input::placeholder {
        font-size: 0.8rem !important;
    }
} 

/* Header Overflow Fix - Critical Mobile Fixes */
.modern-header {
    width: 100% !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.modern-navbar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.modern-logo-section {
    min-width: 0 !important;
    overflow: hidden !important;
}

.modern-logo-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

/* Mobile Header Overflow Fixes */
@media (max-width: 768px) {
    .modern-navbar {
        padding: 0.5rem 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .modern-logo-section {
        max-width: 45% !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
    }
    
    .modern-logo-text {
        font-size: 0.95rem !important;
        max-width: 100% !important;
    }
    
    .role-badge {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.3rem !important;
        flex-shrink: 0 !important;
    }
    
    .modern-user-section {
        max-width: 50% !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
    
    .modern-logout-btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.4rem !important;
        white-space: nowrap !important;
    }
    
    .modern-nav-toggle {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
        margin-left: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    .modern-navbar {
        padding: 0.4rem 0.4rem !important;
    }
    
    .modern-logo-section {
        max-width: 40% !important;
    }
    
    .modern-logo-text {
        font-size: 0.85rem !important;
    }
    
    .modern-user-section {
        max-width: 55% !important;
    }
    
    .modern-logout-btn {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.3rem !important;
    }
    
    .modern-nav-toggle {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 360px) {
    .modern-navbar {
        padding: 0.3rem 0.3rem !important;
    }
    
    .modern-logo-section {
        max-width: 35% !important;
    }
    
    .modern-logo-text {
        font-size: 0.75rem !important;
    }
    
    .role-badge {
        display: none !important;
    }
    
    .modern-user-section {
        max-width: 60% !important;
    }
    
    .modern-logout-btn {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.25rem !important;
    }
}

/* ========== ULTRA PROFESSIONAL HEADER ========== */

/* Header Top Bar */
/* Professional Header styles removed - using clean-header instead */

/* ========== PROFESSIONAL HEADER ========== */

/* Main Header Container */
.professional-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Navigation */
.header-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 200px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    white-space: nowrap;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.role-badge.admin {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: #333;
    border-color: rgba(255, 255, 255, 0.5);
}

.role-badge.user {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.1rem;
    transition: all 0.3s ease;
}

.search-wrapper.focused {
    background: white;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: none;
    border-radius: 25px;
    background: transparent;
    font-size: 0.85rem;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

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

.result-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.result-type {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.1rem;
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Desktop Navigation Menu */
.nav-menu.desktop-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex-shrink: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-icon {
    font-size: 1rem;
}

.nav-text {
    font-size: 0.85rem;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 300px;
    justify-content: flex-end;
}

/* Notifications */
.notifications-wrapper {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    color: white;
    font-size: 0.8rem;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.notification-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.notification-badge.has-notifications {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notification-icon {
    font-size: 1rem;
}

.notification-count {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 350px;
    margin-top: 0.5rem;
    z-index: 100;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.notifications-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.notifications-count {
    font-size: 0.8rem;
    color: #666;
    background: #f1f3f4;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    gap: 0.8rem;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

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

.notification-icon-wrapper {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.7rem;
    color: #999;
}

.no-notifications {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.no-notif-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.notifications-footer {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #f1f3f4;
    text-align: center;
}

.notifications-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

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

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    line-height: 1.2;
}

.user-dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.user-info:hover .user-dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 280px;
    margin-top: 0.5rem;
    z-index: 100;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown-header {
    padding: 1.5rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info-large {
    flex: 1;
}

.user-name-large {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.8rem;
    opacity: 0.9;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateX(4px);
}

.dropdown-item.logout-item {
    color: #e74c3c;
}

.dropdown-item.logout-item:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f1f3f4;
    margin: 0.5rem 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 3px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 4rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mobile-user-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.mobile-notification-indicator {
    position: absolute;
    top: -5px;
    right: 0;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Mobile Search */
.mobile-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0.1rem;
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.mobile-search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: none;
    border-radius: 20px;
    background: transparent;
    font-size: 0.85rem;
    outline: none;
    color: #333;
}

.mobile-search-input::placeholder {
    color: #999;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-group {
    margin-bottom: 1.5rem;
}

.mobile-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.mobile-group-icon {
    font-size: 1.1rem;
}

.mobile-group-title {
    flex: 1;
}

.mobile-group-items {
    padding: 0 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 10px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.mobile-menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.mobile-item-text {
    flex: 1;
    font-weight: 500;
}

.mobile-item-indicator {
    color: #4ecdc4;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 86, 86, 0.2);
    border: 2px solid rgba(255, 86, 86, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    justify-content: center;
}

.mobile-logout-btn:hover {
    background: rgba(255, 86, 86, 0.4);
    border-color: rgba(255, 86, 86, 0.5);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.mobile-logout-icon {
    font-size: 1.1rem;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PROFESSIONAL HEADER RESPONSIVE ========== */

/* Large Desktop */
@media (max-width: 1400px) {
    .header-nav {
        max-width: 1200px;
        padding: 0 0.75rem;
    }
    
    .search-section {
        max-width: 350px;
    }
    
    .user-section {
        min-width: 280px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .header-nav {
        gap: 0.75rem;
    }
    
    .logo-section {
        min-width: 180px;
    }
    
    .search-section {
        max-width: 300px;
        margin: 0 0.75rem;
    }
    
    .nav-menu.desktop-menu {
        gap: 0.15rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .user-section {
        min-width: 260px;
        gap: 0.5rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .header-nav {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .logo-section {
        min-width: 160px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .search-section {
        max-width: 250px;
        margin: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .user-section {
        min-width: 240px;
        gap: 0.4rem;
    }
    
    .user-name {
        max-width: 100px;
        font-size: 0.8rem;
    }
    
    .user-role-text {
        font-size: 0.65rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .professional-header {
        padding: 0.6rem 0;
    }
    
    .header-nav {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }
    
    .logo-section {
        min-width: auto;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .role-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    /* Hide search on mobile */
    .search-section {
        display: none;
    }
    
    /* Hide desktop menu on mobile */
    .nav-menu.desktop-menu {
        display: none;
    }
    
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex;
    }
    
    .user-section {
        min-width: auto;
        gap: 0.35rem;
    }
    
    .notification-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .user-info {
        padding: 0.3rem 0.6rem;
    }
    
    .user-details {
        display: none;
    }
    
    .user-dropdown-arrow {
        display: none;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    /* Adjust dropdowns for mobile */
    .notifications-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .user-dropdown {
        width: 260px;
        right: -80px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .professional-header {
        padding: 0.5rem 0;
    }
    
    .header-nav {
        padding: 0 0.4rem;
        gap: 0.3rem;
    }
    
    .logo-section {
        gap: 0.4rem;
        flex: 1;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .role-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .user-section {
        gap: 0.25rem;
        flex-shrink: 0;
    }
    
    .notification-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .user-info {
        padding: 0.25rem 0.5rem;
    }
    
    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .mobile-toggle {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
    }
    
    .mobile-toggle span {
        width: 16px;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu {
        width: 280px;
    }
    
    .notifications-dropdown {
        width: 280px;
        right: -100px;
    }
    
    .user-dropdown {
        width: 240px;
        right: -120px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .header-nav {
        padding: 0 0.3rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .role-badge {
        display: none;
    }
    
    .user-section {
        gap: 0.2rem;
    }
    
    .notification-badge {
        padding: 0.2rem 0.4rem;
    }
    
    .user-info {
        padding: 0.2rem 0.4rem;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .mobile-toggle {
        width: 30px;
        height: 30px;
        padding: 0.25rem;
    }
    
    .mobile-toggle span {
        width: 14px;
    }
    
    .mobile-menu {
        width: 260px;
    }
    
    .notifications-dropdown {
        width: 260px;
        right: -150px;
    }
    
    .user-dropdown {
        width: 220px;
        right: -140px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu {
        padding-top: 1rem;
    }
    
    .mobile-menu-header {
        padding: 1rem 1.5rem;
    }
    
    .mobile-search {
        padding: 0.5rem 1.5rem;
    }
    
    .mobile-menu-content {
        padding: 0.5rem 0;
    }
    
    .mobile-menu-group {
        margin-bottom: 1rem;
    }
    
    .mobile-group-header {
        padding: 0.5rem 1.5rem;
    }
    
    .mobile-menu-item {
        padding: 0.6rem 1rem;
    }
    
    .mobile-menu-footer {
        padding: 0.5rem 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .search-wrapper {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .search-wrapper.focused {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .notifications-dropdown,
    .user-dropdown {
        background: #2c3e50;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .notifications-header h4,
    .notification-title,
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .notification-message {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #4ecdc4;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .professional-header {
        background: linear-gradient(135deg, #000080 0%, #4B0082 100%);
        border-bottom: 2px solid #ffffff;
    }
    
    .nav-link,
    .notification-badge,
    .user-info {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .role-badge {
        border: 2px solid #ffffff;
        color: #000000;
        background: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-icon {
        animation: none;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .mobile-menu {
        transition: none;
    }
    
    .mobile-overlay {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .professional-header {
        background: none !important;
        box-shadow: none !important;
        border-bottom: 2px solid #000000 !important;
        padding: 0.5rem 0 !important;
    }
    
    .search-section,
    .user-section,
    .mobile-toggle {
        display: none !important;
    }
    
    .logo-text {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    .nav-link {
        color: #000000 !important;
    }
}