@import 'sidebar.css';
@import 'chat-messages.css';
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: none;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 14px;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-menu span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
}

.user-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.user-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 30px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Sections */
.section {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.project-card h3 a:hover {
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--light-bg);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--light-bg);
}

.data-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

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

.badge.open {
    background: #dbeafe;
    color: #1e40af;
}

.badge.in_progress {
    background: #fef3c7;
    color: #92400e;
}

.badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.badge.on_hold {
    background: #f3f4f6;
    color: #374151;
}

.badge.active {
    background: #d1fae5;
    color: #065f46;
}

/* Priority */
.priority {
    font-weight: 600;
}

.priority.low {
    color: #64748b;
}

.priority.medium {
    color: #f59e0b;
}

.priority.high {
    color: #ef4444;
}

.priority.urgent {
    color: #dc2626;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #047857;
    box-shadow: var(--shadow-sm);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-icon {
    display: inline-block;
    padding: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.15);
}

/* Forms */
.form-container {
    max-width: 800px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-standard {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Task Detail */
.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.task-header h1 {
    font-size: 2rem;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-content-grid {
    display: grid;
    gap: 30px;
}

.task-info-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.task-info-box h3 {
    margin-bottom: 15px;
}

.task-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.task-description {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.task-description h3 {
    margin-bottom: 15px;
}

/* Time Tracking */
.time-tracking {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.time-tracking h3 {
    margin-bottom: 20px;
}

.time-form {
    margin-bottom: 30px;
}

.time-entries h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Comments */
.comments-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 6px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comment-body {
    color: var(--text-primary);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* Footer */
.main-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
}

/* Utilities */
.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

/* Badge ek renkler */
.badge.lead {
    background: #fef3c7;
    color: #92400e;
}

.badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.badge.archived {
    background: #e5e7eb;
    color: #374151;
}

.badge.draft {
    background: #f3f4f6;
    color: #6b7280;
}

.badge.sent {
    background: #dbeafe;
    color: #1e40af;
}

.badge.accepted {
    background: #d1fae5;
    color: #065f46;
}

.badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge.expired {
    background: #fef3c7;
    color: #92400e;
}

.badge.paid {
    background: #d1fae5;
    color: #065f46;
}

.badge.overdue {
    background: #fee2e2;
    color: #991b1b;
}

.badge.cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.badge.planning {
    background: #e0e7ff;
    color: #3730a3;
}

.badge.paused {
    background: #fef3c7;
    color: #92400e;
}

/* Financial Info Box */
.financial-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.financial-info-box h3 {
    color: white;
    margin-bottom: 15px;
}

.financial-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    
    .main-nav {
        margin: 10px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Timer Widget Styles */
.timer-widget {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.timer-display {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.timer-widget #timerToggleBtn {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timer-widget #timerToggleBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.timer-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timer-message:not(:empty) {
    opacity: 1;
}

.timer-message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.timer-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

/* Timer Stop Confirmation Modal */
.timer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.timer-modal {
    width: 100%;
    max-width: 420px;
    margin: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.timer-modal .card-body {
    padding-top: 8px;
}

.timer-modal .form-group {
    margin-bottom: 16px;
}

.timer-modal .form-group:last-child {
    margin-bottom: 0;
}

/* Monthly Time Card Styles */
.monthly-time-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin: 20px 0 30px 0;
    box-shadow: var(--shadow-sm);
}

.monthly-time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.monthly-time-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monthly-time-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.month-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.month-nav-btn:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.month-nav-btn i {
    width: 16px;
    height: 16px;
}

.monthly-time-value {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 10px 0;
}

.monthly-time-value .no-time {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
}

@media (max-width: 768px) {
    .monthly-time-header {
        flex-direction: column;
        gap: 15px;
    }

    .month-nav-btn {
        width: 100%;
        justify-content: center;
    }
}
