/* Root Variables */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --secondary-dark: #1a252f;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #1abc9c;
    --light-color: #f5f7fa;
    --dark-color: #333;
    --text-color: #333;
    --border-radius: 0.5rem;
    --font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout Components */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding-top: 60px;
    z-index: 990;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 250px;
    padding: 80px 20px 20px;
    min-height: calc(100vh - 60px - 40px);
    transition: margin-left 0.3s ease;
}

.footer {
    margin-left: 250px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    text-align: center;
    transition: margin-left 0.3s ease;
}

/* Toggle Menu Button */
.toggle-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.sidebar .nav li {
    margin-bottom: 0.5rem;
}

.sidebar .nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.sidebar .nav a:hover, .sidebar .nav a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav a i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Logo */
.logo {
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.logo img {
    max-width: 120px;
    height: auto;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
}

.user-menu .dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-menu .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Form Container */
.form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.form-container:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-text:last-child {
    margin-bottom: 0;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-item.rejected::before {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.timeline-content {
    margin-left: 40px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Request Cards */
.request-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.request-card.status-beklemede {
    border-left-color: var(--primary-color);
}

.request-card.status-taslak {
    border-left-color: #95a5a6;
}

.request-card.status-onay-bekliyor {
    border-left-color: var(--warning-color);
}

.request-card.status-tamamlandi {
    border-left-color: var(--success-color);
}

.request-card.status-rejected {
    border-left-color: var(--danger-color);
}

.request-card.status-revize {
    border-left-color: #9b59b6;
}

/* File Upload Styles */
.multi-file-upload {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.multi-file-upload:hover, .multi-file-upload.dragover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-text {
    margin-bottom: 15px;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.file-list {
    text-align: left;
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-info {
    flex: 1;
    margin-left: 10px;
}

.file-name {
    font-weight: 500;
}

.file-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.remove-file {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Document Upload Zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.drop-zone-prompt {
    margin-bottom: 15px;
    font-weight: 500;
}

.drop-zone-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

/* Comments */
.comment-box {
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comment-info {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 2px;
}

.comment-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background-color: white;
    color: #212529;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.toast.fade-out {
    animation: fadeOut 0.3s forwards;
}

.toast-body {
    padding: 0.75rem 1.25rem;
}

.toast.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

.toast.bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
}

.toast.bg-warning {
    background-color: var(--warning-color) !important;
    color: #212529;
}

.toast.bg-info {
    background-color: var(--info-color) !important;
    color: white;
}

/* Priority Indicators */
.priority-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.priority-low { background-color: var(--primary-color); }
.priority-normal { background-color: var(--success-color); }
.priority-high { background-color: var(--warning-color); }
.priority-critical { background-color: var(--danger-color); }

/* Icon Circle */
.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Document Items */
.document-item {
    transition: all 0.3s ease;
}

.document-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Chart Container */
.chart-container {
    position: relative;
    margin: auto;
    height: 100%;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .toggle-btn {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.visible {
        transform: translateX(0);
    }
    
    .main-content, .footer {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .nav-links {
        display: none;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 1rem;
    }
    
    .main-content {
        padding: 80px 15px 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* Dark Theme Support */
body.dark-theme {
    --light-color: #1e2430;
    --dark-color: #f5f7fa;
    --text-color: #ecf0f1;
    background-color: var(--light-color);
    color: var(--text-color);
}

body.dark-theme .card,
body.dark-theme .form-container,
body.dark-theme .timeline-content,
body.dark-theme .comment-box {
    background-color: #283747;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .card-header,
body.dark-theme .card-footer {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .form-control {
    background-color: #1a2533;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

body.dark-theme .text-muted {
    color: #a0aec0 !important;
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, 
body.dark-theme h4, body.dark-theme h5, body.dark-theme h6,
body.dark-theme .form-label {
    color: #ecf0f1;
}

body.dark-theme .footer {
    background-color: #1a2533;
    border-color: rgba(255, 255, 255, 0.05);
    color: #a0aec0;
}

/* Utility Classes */
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important; }

.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-muted { color: #6c757d !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { background-color: #343a40 !important; }

.border-0 { border: 0 !important; }
.rounded { border-radius: var(--border-radius) !important; }
.rounded-circle { border-radius: 50% !important; }

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-bold { font-weight: 700 !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Add more utility classes as needed */