/*
 * Global Style & Corporate Design System
 * Colors: Navy (#0F172A, #1E293B) & Turquoise (#14B8A6, #0D9488)
 * SosyalProje.com.tr
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --navy-dark: #0F172A;
    --navy-card: #1E293B;
    --navy-light: #334155;
    
    --turquoise: #14B8A6;
    --turquoise-hover: #0D9488;
    --turquoise-light: #2DD4BF;
    --turquoise-soft: rgba(20, 184, 166, 0.15);
    
    --body-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #0F172A;
    --text-muted: #64748B;
    
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --glass-card: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

/* Base Body Styles */
body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Landing Page Design */
.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
    color: #FFFFFF;
    position: relative;
    padding: 120px 0 100px 0;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--body-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-title {
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #FFFFFF 50%, var(--turquoise-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Buttons with Micro-Animations */
.btn-turquoise {
    background-color: var(--turquoise);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-turquoise:hover {
    background-color: var(--turquoise-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.btn-outline-turquoise {
    border: 2px solid var(--turquoise);
    color: var(--turquoise);
    background: transparent;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-turquoise:hover {
    background-color: var(--turquoise);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px var(--turquoise-soft);
}

/* Dashboard Sidebar & Grid Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background-color: var(--navy-dark);
    color: #FFFFFF;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.dashboard-content {
    flex-grow: 1;
    background-color: #F1F5F9;
    padding: 30px;
    min-width: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    padding: 20px 14px;
    list-style: none;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #94A3B8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link i {
    width: 24px;
    font-size: 1.15rem;
    margin-right: 12px;
}

.sidebar-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active .sidebar-link {
    color: #FFFFFF;
    background-color: var(--turquoise);
}

/* Navbar Dashboard */
.dashboard-navbar {
    background-color: #FFFFFF;
    padding: 16px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard Cards */
.db-stat-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.db-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.db-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 18px;
}

.db-stat-icon.total { background-color: rgba(14, 165, 233, 0.15); color: #0284c7; }
.db-stat-icon.pending { background-color: rgba(245, 158, 11, 0.15); color: #d97706; }
.db-stat-icon.approved { background-color: rgba(16, 185, 129, 0.15); color: #059669; }
.db-stat-icon.rejected { background-color: rgba(239, 68, 68, 0.15); color: #dc2626; }
.db-stat-icon.completed { background-color: rgba(139, 92, 246, 0.15); color: #7c3aed; }

/* Status Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-draft { background-color: #E2E8F0; color: #475569; }
.badge-pending { background-color: #FEF3C7; color: #D97706; }
.badge-pre_review { background-color: #E0F2FE; color: #0284C7; }
.badge-evaluating { background-color: #EDE9FE; color: #7C3AED; }
.badge-approved { background-color: #D1FAE5; color: #059669; }
.badge-rejected { background-color: #FEE2E2; color: #DC2626; }
.badge-in_progress { background-color: #E0F2FE; color: #0369A1; }
.badge-completed { background-color: #D1FAE5; color: #065F46; }

/* Message / Chat Styles */
.chat-container {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background-color: #F8FAFC;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 16px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.sent {
    background-color: var(--turquoise);
    color: #FFFFFF;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    background-color: #FFFFFF;
    color: var(--text-primary);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-meta {
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* Wizard / Form Progress Tracker */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #E2E8F0;
    z-index: 1;
}

.wizard-step {
    z-index: 2;
    text-align: center;
    width: 25%;
}

.wizard-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-weight: 600;
    border: 4px solid var(--body-bg);
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-icon {
    background-color: var(--turquoise);
    color: #FFFFFF;
    box-shadow: 0 0 0 5px var(--turquoise-soft);
}

.wizard-step.completed .wizard-step-icon {
    background-color: var(--navy-dark);
    color: #FFFFFF;
}

.wizard-step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
}

.wizard-step.active .wizard-step-title {
    color: var(--turquoise);
}

/* Activity Log Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--turquoise);
    border: 3px solid #FFFFFF;
}

.timeline-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Custom Alert & Notification Styling */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #EF4444;
    color: #FFFFFF;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 0.65rem;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard-sidebar {
        margin-left: -280px;
        position: fixed;
        height: 100vh;
    }
    .dashboard-sidebar.active {
        margin-left: 0;
    }
}
