/* Modern Social Media Agency CRM - CSS */

/* CSS Variables */
:root {
    --primary-color: #8141e6;
    --primary-light: #9f7aea;
    --primary-dark: #6b46c1;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #8141e6;
    --light-color: #fffbf3;
    --dark-color: #212428;
    --background-color: #f5f2ed;
    --card-background: #fffbf3;
    --text-muted: #6b7280;
    --border-color: rgba(129, 65, 230, 0.1);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 40px rgba(129, 65, 230, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--dark-color);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mor zemin üzerindeki yazılar beyaz olmalı */
section[style*="background-color: #8141e6"] h1,
section[style*="background-color: #8141e6"] h2,
section[style*="background-color: #8141e6"] h3,
section[style*="background-color: #8141e6"] h4,
section[style*="background-color: #8141e6"] h5,
section[style*="background-color: #8141e6"] h6,
section[style*="background-color: #8141e6"] p,
section[style*="background-color: #8141e6"] .text-dark,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary .text-dark {
    color: white !important;
}

/* CTA Section yazıları */
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.cta-section p {
    color: white !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(20px);
    background: var(--primary-color) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--background-color) !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(129, 65, 230, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* Modern Cards */
.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(129, 65, 230, 0.2);
}

.card-body {
    padding: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-icon {
    transition: var(--transition);
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Portfolio Items */
.portfolio-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.portfolio-item .card-img-top {
    transition: var(--transition);
}

.portfolio-item:hover .card-img-top {
    transform: scale(1.05);
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-background);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(129, 65, 230, 0.1);
    transform: translateY(-2px);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background: var(--card-background);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.25rem 1rem;
}

.table tbody tr {
    transition: var(--transition);
    border: none;
}

.table tbody tr:hover {
    background: rgba(129, 65, 230, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-color);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Footer */
footer.bg-dark {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2d33 100%) !important;
    color: white;
}

footer.bg-dark * {
    color: white !important;
}

footer.bg-dark a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer.bg-dark a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

footer.bg-dark .text-light {
    color: white !important;
}

footer.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer.bg-dark h1, 
footer.bg-dark h2, 
footer.bg-dark h3, 
footer.bg-dark h4, 
footer.bg-dark h5, 
footer.bg-dark h6 {
    color: white !important;
}

footer.bg-dark p {
    color: white !important;
}

footer.bg-dark .social-links a {
    color: white !important;
    transition: all 0.3s ease;
}

footer.bg-dark .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

/* Loading States */
.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-gradient {
    color: var(--primary-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.shadow-custom {
    box-shadow: var(--shadow-heavy);
}

/* Status Colors */
.status-open { color: var(--danger-color); }
.status-in-progress { color: var(--warning-color); }
.status-pending { color: var(--info-color); }
.status-completed { color: var(--success-color); }
.status-closed { color: var(--secondary-color); }

/* Priority Colors */
.priority-low { color: var(--success-color); }
.priority-medium { color: var(--warning-color); }
.priority-high { color: var(--danger-color); }
.priority-urgent { 
    color: var(--danger-color); 
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--card-background);
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Messages */
.message-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    position: relative;
    animation: scaleIn 0.3s ease-out;
}

.message-bubble.client {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 8px;
}

.message-bubble.admin {
    background: var(--light-color);
    color: var(--dark-color);
    border-bottom-left-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Dashboard Styles */
.dashboard-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.metric-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 4s ease-in-out infinite;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--dark-color) 0%, #2a2d33 100%);
    min-height: 100vh;
    padding: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    margin: 0.25rem 1rem;
    border-radius: 8px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(129, 65, 230, 0.2);
    color: white;
    transform: translateX(8px);
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    transform: scaleY(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --border-radius: 12px;
        --border-radius-lg: 16px;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(129, 65, 230, 0.2);
    color: var(--dark-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(129, 65, 230, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}
/* Dropdown overflow fix */
.table-responsive {
    overflow: visible !important;
}

.card {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

/* Dropdown positioning fix */
.dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    will-change: auto !important;
}

/* Table cell overflow fix */
.table td {
    position: relative;
    overflow: visible !important;
}

/* Btn-group positioning */
.btn-group {
    position: relative;
}

.btn-group .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1050 !important;
    margin-top: 2px;
}
/* Action buttons in tables */
.d-flex.gap-1 .btn {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}

.d-flex.gap-1 .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.d-flex.gap-1 .btn i {
    font-size: 0.875rem;
}

/* Responsive button behavior */
@media (max-width: 768px) {
    .d-flex.gap-1 {
        flex-wrap: wrap;
        gap: 0.25rem !important;
    }
    
    .d-flex.gap-1 .btn {
        min-width: 28px;
        height: 28px;
    }
    
    .d-flex.gap-1 .btn i {
        font-size: 0.75rem;
    }
}

/* Admin Sidebar Styles */
.sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: var(--primary-color, #8141e6);
}

.sidebar .nav-link i {
    width: 16px;
    text-align: center;
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-item {
    margin-bottom: 0.25rem;
}

/* Active state enhancement */
.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: #fff;
    border-radius: 0 2px 2px 0;
}

.sidebar .nav-link {
    position: relative;
}

/* Responsive sidebar */
@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
    }
    
    .sidebar-heading {
        display: none;
    }
}
/* Footer Text Color Fix - Extra Strong Rules */
footer.bg-dark, 
footer.bg-dark * {
    color: white !important;
}

footer.bg-dark .text-light,
footer.bg-dark .text-muted {
    color: white !important;
}

footer.bg-dark a,
footer.bg-dark a:visited,
footer.bg-dark a:link {
    color: white !important;
}

footer.bg-dark a:hover,
footer.bg-dark a:focus {
    color: var(--primary-color, #8141e6) !important;
}

/* Ensure all footer elements are white */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
footer p, footer span, footer div, footer li, footer ul {
    color: white !important;
}

footer a {
    color: white !important;
}

footer a:hover {
    color: #8141e6 !important;
}