* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
        }

        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-box {
            background: rgba(255, 255, 255, 0.95);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            width: 100%;
            max-width: 400px;
        }

        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .login-logo {
            font-size: 4em;
            margin-bottom: 10px;
        }

        .login-header h1 {
            color: #4a5568;
            font-size: 2em;
            margin-bottom: 10px;
        }

        .login-header p {
            color: #666;
            font-size: 0.9em;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #4a5568;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 0.9em;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            width: auto;
        }

        .btn-primary { background: linear-gradient(45deg, #667eea, #764ba2); color: white; }
        .btn-success { background: linear-gradient(45deg, #48bb78, #38a169); color: white; }
        .btn-warning { background: linear-gradient(45deg, #ed8936, #dd6b20); color: white; }
        .btn-danger { background: linear-gradient(45deg, #f56565, #e53e3e); color: white; }
        .btn-info { background: linear-gradient(45deg, #4299e1, #3182ce); color: white; }

        .main-app {
            display: none;
        }

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

        .home-page {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 18px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 25px 45px rgba(15, 23, 42, 0.1);
        }

        .home-hero {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .home-hero h1 {
            font-size: 2rem;
            color: #1f2937;
            margin-bottom: 10px;
        }

        .home-hero p {
            color: #4a5568;
            font-size: 1rem;
            max-width: 520px;
        }

        .home-hero button {
            margin-top: 10px;
        }

        .home-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px;
            margin-top: 30px;
        }

        .home-card {
            background: white;
            border-radius: 18px;
            padding: 22px;
            box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .home-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
        }

        .home-card .icon {
            font-size: 2rem;
        }

        .home-card .title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #1f2937;
        }

        .home-card .description {
            font-size: 0.9rem;
            color: #4a5568;
        }

        .home-card span.badge {
            font-size: 0.8rem;
            padding: 5px 10px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 999px;
            width: fit-content;
            font-weight: 600;
            color: #4338ca;
        }

        .page-content {
            display: none;
        }

        .page-content.active {
            display: block;
        }

        /* Project Detail Page Styles */
        .project-detail-page {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .project-detail-header {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .project-detail-title {
            font-size: 1.8em;
            font-weight: 700;
        }

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

        .board-container {
            padding: 20px;
            overflow-x: auto;
            min-height: 600px;
        }

        .kanban-board {
            display: flex;
            gap: 0;
            min-width: fit-content;
            padding-bottom: 20px;
            overflow-x: auto;
        }

        .board-column {
            background: #f8f9fa;
            border-radius: 12px;
            min-width: 300px;
            max-width: 320px;
            padding: 15px;
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .board-column.drag-over {
            border-color: #667eea;
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
        }

        .column-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e9ecef;
        }

        .column-title {
            font-weight: 700;
            font-size: 1.1em;
            color: #495057;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .column-count {
            background: #667eea;
            color: white;
            padding: 4px 8px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: 600;
        }

        .stage-column {
            flex-shrink: 0;
        }

        .task-list {
            min-height: 200px;
            padding: 10px 0;
            transition: background 0.3s ease;
        }

        .task-list:hover {
            background: rgba(102, 126, 234, 0.05) !important;
        }

        .task-card {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 12px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .task-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .task-card.dragging {
            opacity: 0.5;
            transform: rotate(3deg);
            z-index: 1000;
        }

        .task-card.completed {
            background: #d4edda;
            opacity: 0.8;
        }

        .task-card.running {
            border-left-color: #ffc107;
            animation: pulse-border 2s infinite;
        }

        @keyframes pulse-border {
            0%, 100% { border-left-color: #ffc107; }
            50% { border-left-color: #ff8f00; }
        }

        .task-title {
            font-weight: 600;
            font-size: 1em;
            margin-bottom: 8px;
            color: #2d3748;
            padding-left: 8px;
            line-height: 1.3;
        }

        .task-description-short {
            font-size: 0.85em;
            color: #666;
            margin-bottom: 8px;
            padding-left: 8px;
            line-height: 1.4;
            font-style: italic;
        }

        .task-created-date {
            font-size: 0.75em;
            color: #888;
            margin-bottom: 8px;
            padding-left: 8px;
        }

        .task-timer {
            background: linear-gradient(45deg, #e3f2fd, #bbdefb);
            color: #1976d2;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 0.8em;
            font-weight: 700;
            text-align: center;
            margin: 8px 0;
            border: 1px solid #90caf9;
        }

        .task-completion-info {
            background: #e8f5e8;
            padding: 8px;
            border-radius: 6px;
            margin: 8px 0;
            border-left: 3px solid #28a745;
        }

        .task-time-info {
            font-size: 0.75em;
            color: #2e7d32;
            margin-bottom: 4px;
        }

        .task-duration {
            font-size: 0.8em;
            font-weight: 600;
            color: #1b5e20;
            margin-top: 4px;
        }

        .task-meta {
            padding-left: 8px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
        }

        .task-priority {
            font-size: 0.8em;
        }

        .task-main-actions {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }

        .task-secondary-actions {
            display: flex;
            gap: 4px;
            padding: 8px;
            background: #f8f9fa;
            border-radius: 0 0 10px 10px;
            border-top: 1px solid #e9ecef;
            flex-wrap: wrap;
        }

        .task-btn {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.7em;
            font-weight: 600;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .task-btn-start { background: #17a2b8; color: white; }
        .task-btn-pause { background: #ffc107; color: white; }
        .task-btn-complete { background: #28a745; color: white; }

        .task-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .task-btn-secondary {
        padding: 4px 8px;
        border: 1px solid #dee2e6;
        background: white;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.7em;
        font-weight: 500;
        transition: all 0.2s ease;
        color: #495057;
        }

        .task-btn-edit:hover { 
        background: #ffc107; 
        color: white; 
        border-color: #ffc107; 
        }

        .task-btn-delete:hover { 
        background: #dc3545; 
        color: white; 
        border-color: #dc3545; 
        }

        .task-btn-complete-alt:hover { 
        background: #28a745; 
        color: white; 
        border-color: #28a745; 
        }

        /* Modal güncellemeleri */
        .modal-content {
        animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
        }

        /* Responsive iyileştirmeler */
        @media (max-width: 768px) {
        .task-main-actions, .task-secondary-actions {
            justify-content: center;
        }
        
        .task-btn, .task-btn-secondary {
            font-size: 0.65em;
            padding: 3px 6px;
        }
        
        .task-title {
            font-size: 0.9em;
        }
        
        .task-description-short {
            font-size: 0.8em;
        }
        }

        .task-priority-indicator {
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            border-radius: 10px 0 0 10px;
        }

        .priority-urgent { background: #dc3545; }
        .priority-high { background: #fd7e14; }
        .priority-medium { background: #ffc107; }
        .priority-low { background: #28a745; }

        .task-title {
            font-weight: 600;
            font-size: 1em;
            margin-bottom: 8px;
            color: #2d3748;
            padding-left: 8px;
        }

        .task-description {
            font-size: 0.85em;
            color: #666;
            margin-bottom: 10px;
            padding-left: 8px;
        }

        .task-meta {
            font-size: 0.75em;
            color: #888;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-left: 8px;
        }

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

        .task-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 4px;
            font-size: 0.8em;
            transition: all 0.2s ease;
        }

        .task-btn:hover {
            background: #f8f9fa;
        }

        .drop-zone {
            min-height: 60px;
            border: 2px dashed #6c757d;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6c757d;
            font-style: italic;
            margin: 10px 0;
            transition: all 0.3s ease;
        }
        

        .drop-zone.drag-over {
            border-color: #667eea;
            background: #e3f2fd;
            color: #667eea;
        }

        .drop-zone:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.05);
            color: #667eea;
        }

        .add-task-btn {
            width: 100%;
            padding: 10px;
            border: 2px dashed #ced4da;
            background: transparent;
            border-radius: 8px;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .add-task-btn:hover {
            border-color: #667eea;
            color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        .view-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .view-toggle {
            display: flex;
            gap: 5px;
            background: rgba(255, 255, 255, 0.9);
            padding: 5px;
            border-radius: 8px;
        }

        .view-btn {
            padding: 8px 16px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .view-btn.active {
            background: #667eea;
            color: white;
        }

        .filters {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-select {
            padding: 6px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            background: white;
        }

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

        .stat-card {
            background: rgba(255, 255, 255, 0.9);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .stat-number {
            font-size: 1.5em;
            font-weight: 700;
            color: #667eea;
        }

        .stat-label {
            color: #4a5568;
            font-weight: 600;
            font-size: 0.8em;
        }

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

        /* Table View */
        .projects-table {
            display: none;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .table-header {
            background: #f8f9fa;
            padding: 15px 20px;
            border-bottom: 1px solid #e9ecef;
            font-weight: 600;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr 150px;
            gap: 15px;
            align-items: center;
        }

        .table-row {
            padding: 15px 20px;
            border-bottom: 1px solid #f1f3f4;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr 150px;
            gap: 15px;
            align-items: center;
            transition: background 0.3s ease;
            cursor: pointer;
        }

        .table-row:hover {
            background: #f8f9fa;
        }

        .project-name-cell {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .project-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.2em;
        }

        .project-info h4 {
            margin: 0;
            font-size: 1em;
            color: #2d3748;
        }

        .project-info p {
            margin: 0;
            font-size: 0.8em;
            color: #718096;
        }

        .progress-cell {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .progress-bar {
            background: #e2e8f0;
            border-radius: 10px;
            height: 8px;
            flex: 1;
        }

        .progress-fill {
            background: linear-gradient(45deg, #48bb78, #38a169);
            height: 100%;
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        .badge {
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.75em;
            font-weight: 600;
            color: white;
        }

        .badge-web { background: #4299e1; }
        .badge-mobile { background: #48bb78; }
        .badge-api { background: #ed8936; }
        .badge-desktop { background: #9f7aea; }
        .badge-e-commerce { background: #f56565; }
        .badge-game { background: #38b2ac; }
        .badge-ai/ml { background: #805ad5; }
        .badge-iot { background: #d69e2e; }

        .priority-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 600;
        }

        .priority-low { background: #c6f6d5; color: #22543d; }
        .priority-medium { background: #fef5e7; color: #744210; }
        .priority-high { background: #fed7d7; color: #742a2a; }

        .project-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            transition: transform 0.3s ease;
        }

        .project-card:hover {
            transform: translateY(-3px);
        }

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

        .project-title {
            font-size: 1.3em;
            font-weight: 700;
            color: #4a5568;
        }

        .project-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* Settings Page Styles */
        .settings-page {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .settings-section {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            border: 1px solid #e9ecef;
        }

        .settings-section h3 {
            color: #4a5568;
            margin-bottom: 20px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .settings-wrapper {
            display: none;
            margin-top: 30px;
        }

        .settings-wrapper.active {
            display: block;
        }

        .settings-layout {
            display: flex;
            gap: 24px;
            align-items: flex-start;
        }

        .settings-sidebar {
            flex: 0 0 260px;
            background: rgba(255, 255, 255, 0.98);
            border-radius: 18px;
            border: 1px solid #e2e8f0;
            padding: 22px;
            box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .settings-sidebar .sidebar-header h3 {
            margin-bottom: 8px;
            font-size: 1.1em;
        }

        .settings-sidebar .sidebar-header p {
            font-size: 0.85em;
            color: #4a5568;
            opacity: 0.8;
        }

        .settings-link {
            border: none;
            background: #f1f5f9;
            border-radius: 12px;
            padding: 12px 16px;
            font-weight: 600;
            font-size: 0.9rem;
            text-align: left;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .settings-link:hover,
        .settings-link.active {
            background: #667eea;
            color: white;
            box-shadow: 0 10px 22px rgba(102, 126, 234, 0.3);
        }

        .settings-views {
            flex: 1;
            min-width: 0;
            display: none;
        }

        .settings-wrapper.active .settings-views {
            display: block;
        }

        .settings-views .page-content {
            display: none;
        }

        .settings-views .page-content.active {
            display: block;
        }

        @media (max-width: 960px) {
            .settings-layout {
                flex-direction: column;
            }

            .settings-sidebar {
                flex: 1;
            }
        }

        .project-types-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .project-type-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .project-stages-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .project-stage-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .add-item-form {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .add-item-form input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
        }

        /* Tasks Page */
        .tasks-page {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .tasks-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .summary-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            border-left: 4px solid #667eea;
        }

        .summary-card.urgent {
            border-left-color: #dc3545;
            background: #fff5f5;
        }

        .summary-card.high {
            border-left-color: #fd7e14;
            background: #fff8f0;
        }

        .summary-card.medium {
            border-left-color: #ffc107;
            background: #fffbf0;
        }

        .tasks-filter {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 8px 16px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .filter-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .daily-task-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            border-left: 4px solid #e9ecef;
        }

        .daily-task-item:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .daily-task-item.urgent {
            border-left-color: #dc3545;
        }

        .daily-task-item.high {
            border-left-color: #fd7e14;
        }

        .daily-task-item.medium {
            border-left-color: #ffc107;
        }

        .daily-task-item.low {
            border-left-color: #28a745;
        }

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

        .daily-task-title {
            font-weight: 600;
            font-size: 1.1em;
            color: #2d3748;
        }

        .daily-task-project {
            font-size: 0.85em;
            color: #666;
            background: #f1f3f4;
            padding: 2px 8px;
            border-radius: 10px;
        }

        .daily-task-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85em;
            color: #666;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(3px);
        }

        .modal.priority-high {
            z-index: 1100;
        }

        .modal.priority-highest {
            z-index: 1200;
        }

        /* Modal açıldığında diğerlerini soluklaştır */
        .modal.background-modal {
            opacity: 0.3;
            pointer-events: none;
        }

        .modal-content {
            position: relative;
            background: white;
            margin: 2% auto;
            padding: 30px;
            border-radius: 15px;
            width: 95%;
            max-width: 800px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-height: 90vh;
            overflow-y: auto;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s ease;
            user-select: none;
            z-index: 1001;
            position: relative;
        }

        .close:hover,
        .close:focus {
            color: #000;
            text-decoration: none;
        }

        .close:active {
            color: #dc3545;
        }

        .error-message, .success-message {
            padding: 10px;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .error-message {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .success-message {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .sync-status {
            font-size: 0.8em;
            color: #666;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .sync-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #28a745;
            animation: pulse 2s infinite;
        }

        .sync-indicator.syncing {
            background: #ffc107;
            animation: spin 1s linear infinite;
        }

        .sync-indicator.error {
            background: #dc3545;
            animation: none;
        }

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

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

        .initial-tasks-section {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }

        .initial-task-input {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .initial-task-input input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 6px;
        }

        .initial-task-input select {
            width: 180px;
            padding: 8px;
            border: 1px solid #ced4da;
            border-radius: 6px;
        }

        .initial-task-list {
            margin-top: 15px;
        }

        .initial-task-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Back Button */
        .back-btn {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #e2e8f0;
            color: #4a5568;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .back-btn:hover {
            background: #f8f9fa;
            transform: translateY(-1px);
        }

        /* Bildirim Badge */
        .notification-badge {
            background: #dc3545;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 0.7em;
            font-weight: 700;
            margin-left: 5px;
            animation: pulse 2s infinite;
        }

        /* Bildirimler Sayfası */
        .notifications-page {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .notifications-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .notifications-filter {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .notification-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            position: relative;
        }

        .notification-item.unread {
            border-left: 4px solid #007bff;
            background: #f8f9ff;
        }

        .notification-item.urgent {
            border-left-color: #dc3545;
        }

        .notification-item.high {
            border-left-color: #fd7e14;
        }

        .notification-item.medium {
            border-left-color: #ffc107;
        }

        .notification-item.low {
            border-left-color: #28a745;
        }

        .notification-item.info {
            border-left-color: #17a2b8;
        }

        .notification-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

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

        .notification-title {
            font-weight: 600;
            font-size: 1.1em;
            color: #2d3748;
        }

        .notification-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .notification-time {
            font-size: 0.8em;
            color: #666;
        }

        .unread-indicator {
            color: #007bff;
            font-size: 1.2em;
            animation: pulse 2s infinite;
        }

        .notification-content {
            margin-bottom: 15px;
        }

        .notification-message {
            color: #495057;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .notification-project {
            font-size: 0.85em;
            color: #666;
            margin-bottom: 4px;
        }

        .notification-due,
        .notification-completed {
            font-size: 0.8em;
            color: #666;
        }

        .notification-footer {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* Görev kartlarında geciken durumu */
        .daily-task-item.overdue {
            border-left-color: #dc3545;
            background: #fff5f5;
        }

        .daily-task-item.today {
            border-left-color: #ffc107;
            background: #fffbf0;
        }

        /* Zaman etiketi seçimi */
        #customDateGroup {
            transition: all 0.3s ease;
        }

        /* Responsive iyileştirmeler */
        @media (max-width: 768px) {
            .notifications-summary {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .notifications-filter {
                justify-content: flex-start;
            }
            
            .notification-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            
            .notification-footer {
                justify-content: center;
            }
        }

        /* Rutin Görevler Sayfası */
        .routines-page {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .daily-progress-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
        }

        .progress-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .progress-item {
            text-align: center;
        }

        .progress-number {
            display: block;
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .progress-label {
            font-size: 0.9em;
            opacity: 0.9;
        }

        .daily-progress-bar {
            background: rgba(255, 255, 255, 0.3);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }

        .daily-progress-fill {
            background: white;
            height: 100%;
            transition: width 0.5s ease;
            border-radius: 4px;
        }

        .routine-categories {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .category-btn {
            padding: 8px 16px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .category-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .routine-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            border-left: 4px solid #e9ecef;
        }

        .routine-item.pending.high {
            border-left-color: #dc3545;
        }

        .routine-item.pending.medium {
            border-left-color: #ffc107;
        }

        .routine-item.pending.low {
            border-left-color: #28a745;
        }

        .routine-item.completed {
            background: #f8f9fa;
            border-left-color: #28a745;
            opacity: 0.8;
        }

        .routine-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

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

        .routine-title {
            font-weight: 600;
            font-size: 1.1em;
            color: #2d3748;
        }

        .routine-time {
            font-size: 0.85em;
            color: #666;
            background: #f1f3f4;
            padding: 4px 8px;
            border-radius: 12px;
        }

        .routine-description {
            color: #666;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .routine-completed-info {
            background: #d4edda;
            color: #155724;
            padding: 8px 12px;
            border-radius: 6px;
            margin-bottom: 15px;
            font-size: 0.9em;
        }

        .routine-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .progress-stats {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .routine-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .routine-actions {
                justify-content: center;
            }
        }

        .day-item label:hover {
            border-color: #667eea !important;
            background: rgba(102, 126, 234, 0.05) !important;
        }

        .day-item input[type="checkbox"]:checked + span + span {
            color: #667eea !important;
        }

        .day-item input[type="checkbox"]:checked {
            accent-color: #667eea;
        }

        .day-item label:has(input:checked) {
            border-color: #667eea !important;
            background: rgba(102, 126, 234, 0.1) !important;
        }

        /* Rutinler Sayfası Yeni Stiller */
        .routines-header {
            text-align: center;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
        }

        .routines-header h2 {
            color: #4a5568;
            margin: 0;
            font-size: 1.8em;
        }

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

        .daily-summary-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

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

        .summary-header h3 {
            margin: 0;
            font-size: 1.3em;
        }

        .summary-date {
            font-size: 0.9em;
            opacity: 0.9;
        }

        .summary-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .summary-stat {
            text-align: center;
        }

        .summary-stat .stat-number {
            display: block;
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 5px;
            line-height: 1;
        }

        .summary-stat .stat-label {
            font-size: 0.9em;
            opacity: 0.9;
        }

        .summary-progress {
            margin-top: 15px;
        }

        .summary-progress .progress-bar {
            background: rgba(255, 255, 255, 0.3);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }

        .summary-progress .progress-fill {
            background: white;
            height: 100%;
            transition: width 0.5s ease;
            border-radius: 4px;
        }

        .task-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 8px 16px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 0.9em;
        }

        .filter-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .filter-btn:hover:not(.active) {
            border-color: #667eea;
            color: #667eea;
        }

        .task-item-new {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            border-left: 4px solid #e9ecef;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .task-item-new:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .task-item-new.completed {
            background: #f8f9fa;
            opacity: 0.8;
            border-left-color: #28a745;
        }

        .task-item-new.priority-acil { border-left-color: #dc3545; }
        .task-item-new.priority-yüksek { border-left-color: #fd7e14; }
        .task-item-new.priority-orta { border-left-color: #ffc107; }
        .task-item-new.priority-düşük { border-left-color: #28a745; }

        /* Responsive */
        @media (max-width: 768px) {
            .routines-header {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
            
            .summary-stats {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .task-filters {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 5px;
            }
            
            .filter-btn {
                white-space: nowrap;
                flex-shrink: 0;
            }
        }

        .task-item-new.completed {
            background: #f8f9fa !important;
            opacity: 0.7 !important;
            border-left-color: #28a745 !important;
        }

        .task-item-new.completed .task-title {
            text-decoration: line-through;
            color: #6c757d !important;
        }

        .task-item-new.completed {
            transform: none !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
        }

        /* Rutinler Sayfası - Yeni Tasarım */
        .routines-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .routines-header {
            text-align: center;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
        }

        .routines-header h1 {
            margin: 0 0 10px 0;
            font-size: 2.2em;
        }

        .header-info {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .loader-container {
            text-align: center;
            padding: 60px 20px;
        }

        .loader {
            font-size: 3em;
            margin-bottom: 20px;
            animation: bounce 1s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        .stats-section, .analysis-section, .filter-section, .tasks-section {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .stats-section h2, .analysis-section h2, .filter-section h2, .tasks-section h2 {
            color: #4a5568;
            margin-bottom: 20px;
            font-size: 1.4em;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 10px;
        }

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

        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .stat-card.urgent { border-left: 4px solid #dc3545; background: #fff5f5; }
        .stat-card.success { border-left: 4px solid #28a745; background: #f0fff4; }
        .stat-card.warning { border-left: 4px solid #ffc107; background: #fffbf0; }
        .stat-card.info { border-left: 4px solid #17a2b8; background: #e6fffa; }

        .stat-number {
            font-size: 2.5em;
            font-weight: 800;
            margin-bottom: 8px;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.9em;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .progress-section {
            margin-top: 20px;
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .progress-bar {
            height: 12px;
            background: #e2e8f0;
            border-radius: 6px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #28a745, #20c997);
            transition: width 0.8s ease;
            border-radius: 6px;
        }

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

        .analysis-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .filter-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 12px 20px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.9em;
        }

        .filter-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
            transform: scale(1.05);
        }

        .filter-btn:hover:not(.active) {
            border-color: #667eea;
            color: #667eea;
            transform: translateY(-2px);
        }

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

        .tasks-count {
            background: #f8f9fa;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9em;
            color: #666;
            font-weight: 600;
        }

        .tasks-container {
            display: grid;
            gap: 15px;
        }

        .task-card-new {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
            border-left: 4px solid #e2e8f0;
        }

        .task-card-new:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .task-card-new.completed {
            background: #f8f9fa;
            opacity: 0.7;
            border-left-color: #28a745;
        }

        .task-card-new.completed .task-title {
            text-decoration: line-through;
            color: #6c757d;
        }

        .task-card-new.urgent { border-left-color: #dc3545; }
        .task-card-new.high { border-left-color: #fd7e14; }
        .task-card-new.medium { border-left-color: #ffc107; }
        .task-card-new.low { border-left-color: #28a745; }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }

        .empty-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }

        .btn-primary {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .routines-container { padding: 10px; }
            .routines-header { padding: 20px; }
            .routines-header h1 { font-size: 1.8em; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .analysis-grid { grid-template-columns: 1fr; }
            .filter-buttons { justify-content: flex-start; overflow-x: auto; }
            .tasks-header { flex-direction: column; gap: 10px; }
        }

        /* Rutinler Menüsü */
        .routines-menu {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

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

        .menu-btn {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .menu-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .menu-btn:active {
            transform: translateY(-1px);
        }

        /* Menü Renkleri */
        .menu-primary { border-color: #667eea; }
        .menu-primary:hover { background: #667eea; color: white; }

        .menu-success { border-color: #28a745; }
        .menu-success:hover { background: #28a745; color: white; }

        .menu-warning { border-color: #ffc107; }
        .menu-warning:hover { background: #ffc107; color: white; }

        .menu-info { border-color: #17a2b8; }
        .menu-info:hover { background: #17a2b8; color: white; }

        .menu-secondary { border-color: #6c757d; }
        .menu-secondary:hover { background: #6c757d; color: white; }

        .menu-dark { border-color: #343a40; }
        .menu-dark:hover { background: #343a40; color: white; }

        .menu-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
            transition: all 0.3s ease;
        }

        .menu-title {
            font-weight: 700;
            font-size: 1em;
            margin-bottom: 5px;
            transition: all 0.3s ease;
        }

        .menu-desc {
            font-size: 0.8em;
            color: #666;
            transition: all 0.3s ease;
        }

        .menu-btn:hover .menu-desc {
            color: rgba(255, 255, 255, 0.9);
        }

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

        /* Responsive */
        @media (max-width: 768px) {
            .menu-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .menu-btn {
                padding: 15px;
            }
            
            .menu-icon {
                font-size: 2em;
            }
            
            .menu-title {
                font-size: 0.9em;
            }
            
            .menu-desc {
                font-size: 0.75em;
            }
        }

        @media (max-width: 480px) {
            .menu-grid {
                grid-template-columns: 1fr;
            }
        }
