/* Mark AI - Professional Dashboard with Glass Morphism */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.brand h2 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger:hover span {
    background: rgba(255, 255, 255, 0.8);
}

/* Customer Logo */
.customer-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 70px;
    left: -300px;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.menu {
    list-style: none;
    padding: 15px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-weight: 600;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
}

.menu-icon {
    font-size: 22px;
    width: 30px;
}

.menu-text {
    font-size: 15px;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 40px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.5s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 35px;
}

.page-header h1 {
    color: white;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.kpi-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.kpi-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Section Card */
.section-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-link {
    background: none;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-link:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

input, select {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
    color: #1e3c72;
    font-weight: 500;
}

input::placeholder {
    color: rgba(30, 60, 114, 0.5);
}

input:focus, select:focus {
    outline: none;
    background: white;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 16px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: rgba(52, 152, 219, 0.5);
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: rgba(52, 152, 219, 0.7);
}

.btn-secondary {
    background: rgba(46, 204, 113, 0.5);
}

.btn-secondary:hover {
    background: rgba(46, 204, 113, 0.7);
}

.btn-success {
    background: rgba(26, 188, 156, 0.5);
}

.btn-success:hover {
    background: rgba(26, 188, 156, 0.7);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.filter-bar input,
.filter-bar select {
    flex: 1;
}

/* Companies List */
.companies-list, .companies-preview {
    display: grid;
    gap: 20px;
}

.company-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
}

.company-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.company-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.company-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.company-website {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.company-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-completed {
    background: rgba(46, 204, 113, 0.5);
    color: white;
}

.badge-not-started {
    background: rgba(231, 76, 60, 0.5);
    color: white;
}

.badge-score {
    background: rgba(52, 152, 219, 0.5);
    color: white;
}

/* AI Enrich Page */
.search-box-large {
    display: flex;
    flex-direction: column;  /* ← ALT ALTA */
    gap: 15px;
    margin-bottom: 30px;
}

.search-box-large input {
    width: 100%;  /* ← TAM GENİŞLİK */
    font-size: 18px;
    padding: 20px;
}

.search-box-large .btn {
    width: 100%;  /* ← TAM GENİŞLİK */
}

/* Bulk Operations */
.bulk-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.bulk-action-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s;
}

.bulk-action-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.bulk-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.bulk-action-item h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.bulk-action-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 14px;
}

/* Email Stats */
.email-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.email-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.email-stat-value {
    display: block;
    color: white;
    font-size: 32px;
    font-weight: 800;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.projesa-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

.footer a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }
    
    .brand h2 {
        font-size: 18px;
    }
    
    .customer-logo {
        height: 35px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .search-box-large {
        flex-direction: column;
    }
}