/**
 * TMTODO - Ana CSS dosyası (GitHub Dark Theme)
 */

:root {
    /* GitHub Dark Renk Şeması */
    --color-bg-primary: #000000;
    --color-bg-secondary: #121212;
    --color-bg-tertiary: #1e1e1e;
    --color-border-primary: #30363d;
    --color-border-secondary: #3b434b;
    --color-text-primary: #e6edf3;
    --color-text-secondary: #b1bac4;
    --color-accent-primary: #58a6ff;
    --color-accent-secondary: #388bfd;
    --color-danger: #f85149;
    --color-warning: #d29922;
    --color-success: #2ea043;
    --color-header: #121212;
    --color-header-text: #f0f6fc;
    --box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.3);
    --animation-duration: 0.3s;
}

/* Genel Stilller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.6rem;
    color: var(--color-header-text) !important;
}

.navbar {
    background-color: var(--color-header) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(var(--color-header-text), 0.85);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--color-accent-primary);
    transform: translateY(-2px);
}

.nav-item {
    margin: 0 5px;
    position: relative;
    transition: all var(--animation-duration) ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-primary);
    transition: all var(--animation-duration) ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 80%;
}

.card {
    background-color: #121212;
    border: 1px solid #333333;
    border-radius: 6px;
    box-shadow: var(--box-shadow);
    transition: all var(--animation-duration) ease;
}

.card:hover {
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.card-header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333333;
    color: var(--color-text-primary);
}

.card-footer {
    background-color: #1e1e1e;
    border-top: 1px solid #333333;
}

.btn {
    transition: all 0.2s ease;
    border-radius: 6px;
}

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

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

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

.btn-warning {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
}

.btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
}

.form-control, .form-select {
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-primary);
    color: var(--color-text-primary);
}

.form-control:focus, .form-select:focus {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

.form-check-input:checked {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}

.alert {
    border-radius: 6px;
    box-shadow: var(--box-shadow);
    animation: slideDown 0.4s ease;
}

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

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

.table thead {
    background-color: #121212;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #121212;
}

.table-hover > tbody > tr:hover {
    background-color: #1e1e1e;
}

/* Login Sayfası */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    animation: fadeInUp 0.6s ease;
    border: 1px solid var(--color-border-primary);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-accent-primary);
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
}

/* Dashboard */
.dashboard-card {
    animation: fadeIn 0.5s ease;
}

.stats-card {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--color-border-primary);
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(88, 166, 255, 0) 0%,
        rgba(88, 166, 255, 0.08) 100%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
    opacity: 0;
}

.stats-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.stats-card h3 {
    color: var(--color-accent-primary);
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-primary);
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stats-card .icon {
    font-size: 2.5rem;
    color: var(--color-accent-primary);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.stats-card:hover .icon {
    transform: scale(1.3) rotateY(180deg);
    color: var(--color-accent-secondary);
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-accent-primary);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.stats-card:hover .counter {
    color: var(--color-accent-secondary);
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
}

/* To-Do Listeleri */
.todo-list {
    margin-top: 20px;
    overflow: visible;
}

.todo-item {
    background-color: #121212;
    border: 1px solid #333333;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    cursor: pointer;
}

.todo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--color-accent-primary);
}

.todo-item:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.todo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.15) 0%, rgba(88, 166, 255, 0) 70%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.todo-item:hover::before {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes todoHover {
    0% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
    }
    100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.todo-item:hover {
    animation: todoHover 2s infinite;
}

.todo-item.completed {
    background-color: rgba(18, 18, 18, 0.6);
}

.todo-item-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    position: relative;
    overflow: visible;
    justify-content: space-between;
    border-radius: 8px;
}

.todo-title {
    font-weight: 600;
    flex-grow: 1;
    color: #e6edf3;
    margin-right: 20px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.todo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #b1bac4;
    font-size: 0.9rem;
    margin-right: 15px;
}

.todo-meta span {
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
}

.due-date {
    color: #9ca3af;
    background-color: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.2);
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.due-date i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.priority {
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.priority i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.priority:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.priority-high {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(255, 59, 48, 0.3) 100%);
    color: #ff5630;
    border-color: rgba(255, 59, 48, 0.4);
}

.priority-medium {
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.2) 0%, rgba(255, 171, 0, 0.3) 100%);
    color: #ffab00;
    border-color: rgba(255, 171, 0, 0.4);
}

.priority-low {
    background: linear-gradient(135deg, rgba(56, 203, 137, 0.2) 0%, rgba(56, 203, 137, 0.3) 100%);
    color: #36b37e;
    border-color: rgba(56, 203, 137, 0.4);
}

.user-tag, .shared-tag {
    background-color: rgba(56, 139, 95, 0.15);
    color: #7ee787;
}

.action-menu {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.action-menu:hover {
    background-color: #30363d;
    color: #c9d1d9;
}

.dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 8px;
}

.dropdown-item {
    color: #e6edf3;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #2d2d2d;
    color: #ffffff;
}

.dropdown-item.active {
    background-color: rgba(74, 108, 247, 0.2);
    color: #4a6cf7;
}

.dropdown-divider {
    border-top: 1px solid #333333;
    margin: 6px 0;
}

.dropdown-item.text-danger {
    color: #ff7b72;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(218, 54, 51, 0.1);
}

/* Todo İçeriği */
.todo-item-content {
    padding: 16px 16px 16px 18px;
}

.todo-item .title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
}

.todo-item .title:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--color-accent-primary);
}

.todo-item.high .title:before {
    background-color: var(--color-danger);
}

.todo-item.medium .title:before {
    background-color: var(--color-warning);
}

.todo-item.low .title:before {
    background-color: var(--color-success);
}

.todo-item.completed .title {
    text-decoration: line-through;
    color: #9ca3af;
}

.todo-item.completed .title:before {
    background-color: var(--color-text-secondary);
}

.todo-item .description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding-left: 18px;
    line-height: 1.5;
}

.todo-item .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-left: 18px;
}

.todo-item .badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 5px;
    border-radius: 4px;
}

.todo-item:hover .badge {
    transform: scale(1.05);
}

.todo-item .actions {
    margin-top: 0;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    background-color: rgba(13, 17, 23, 0.3);
    border-top: 1px solid var(--color-border-primary);
}

.todo-item .actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.todo-item .actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Detay Sayfası */
.todo-detail {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
    border: 1px solid var(--color-border-primary);
}

.todo-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-primary);
    padding-bottom: 15px;
}

.todo-header h2 {
    color: var(--color-accent-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.todo-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.todo-meta .badge {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.todo-meta:hover .badge {
    transform: scale(1.1);
}

.notes-section, .files-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.note-item {
    background-color: var(--color-bg-tertiary);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    transform: translateX(-20px);
    opacity: 0;
    position: relative;
    border-left: 3px solid var(--color-accent-primary);
}

.note-item:nth-child(1) { animation-delay: 0.1s; }
.note-item:nth-child(2) { animation-delay: 0.2s; }
.note-item:nth-child(3) { animation-delay: 0.3s; }
.note-item:nth-child(4) { animation-delay: 0.4s; }
.note-item:nth-child(5) { animation-delay: 0.5s; }

.note-item:hover {
    transform: translateY(-3px) translateX(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.note-meta {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    margin-top: 10px;
}

.file-item {
    background-color: var(--color-bg-tertiary);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    transform: translateX(-20px);
    opacity: 0;
    border-left: 3px solid var(--color-accent-primary);
}

.file-item:nth-child(1) { animation-delay: 0.1s; }
.file-item:nth-child(2) { animation-delay: 0.2s; }
.file-item:nth-child(3) { animation-delay: 0.3s; }
.file-item:nth-child(4) { animation-delay: 0.4s; }
.file-item:nth-child(5) { animation-delay: 0.5s; }

.file-item:hover {
    transform: translateY(-3px) translateX(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.file-item .file-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--color-accent-primary);
    transition: all 0.3s ease;
}

.file-item:hover .file-icon {
    transform: scale(1.2);
}

.file-item .file-info {
    flex-grow: 1;
}

.file-item .file-name {
    font-weight: bold;
    color: var(--color-text-primary);
}

.file-item .file-meta {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

/* Modallar */
.modal-content {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-primary);
}

.modal-header {
    border-bottom: 1px solid var(--color-border-primary);
    background-color: var(--color-bg-tertiary);
}

.modal-footer {
    border-top: 1px solid var(--color-border-primary);
    background-color: var(--color-bg-tertiary);
}

.modal-title {
    color: var(--color-text-primary);
}

/* Footer */
footer {
    background-color: #000000;
    color: #e6edf3;
    border-top: 1px solid #333333;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(88, 166, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(88, 166, 255, 0.5);
    }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .stats-card {
        padding: 15px;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .todo-item .actions {
        flex-direction: column;
    }
    
    .todo-item .actions .btn {
        margin-top: 5px;
        width: 100%;
    }
    
    .stats-card:hover {
        transform: translateY(-5px);
    }
}

/* Dark tema için badge renkleri */
.bg-primary {
    background-color: var(--color-accent-primary) !important;
}

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

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

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

.bg-info {
    background-color: #5cc8ff !important;
}

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

.text-white {
    color: var(--color-text-primary) !important;
}

.text-primary {
    color: var(--color-accent-primary) !important;
}

.border-primary {
    border-color: var(--color-accent-primary) !important;
}

/* Özel Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* Dropdown Menü Düzeltmesi */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: absolute !important;
    z-index: 1050 !important;
}

.shared-tag {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.2) 0%, rgba(74, 108, 247, 0.3) 100%);
    color: #4a6cf7;
    border-color: rgba(74, 108, 247, 0.4);
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.shared-tag i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.shared-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Badge dot stili - minimal renk göstergeleri için */
.badge-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.badge-dot.bg-danger {
    background-color: #ff5630;
    box-shadow: 0 0 5px rgba(255, 86, 48, 0.5);
}

.badge-dot.bg-warning {
    background-color: #ffab00;
    box-shadow: 0 0 5px rgba(255, 171, 0, 0.5);
}

.badge-dot.bg-success {
    background-color: #36b37e;
    box-shadow: 0 0 5px rgba(54, 179, 126, 0.5);
}

.badge-dot.bg-primary {
    background-color: #4a6cf7;
    box-shadow: 0 0 5px rgba(74, 108, 247, 0.5);
}

/* Priority Filter Button Style */
.filter-dropdown .btn {
    background-color: #1e1e1e;
    border: 1px solid #333333;
    color: #e6edf3;
    padding: 8px 14px;
}

.filter-dropdown .btn:hover {
    background-color: #2d2d2d;
    border-color: #4a6cf7;
}

/* Buton tıklama animasyonu */
.btn-clicked {
    animation: buttonClick 0.3s ease forwards;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Tıklanabilir butonlar için özel stil */
.btn.clickable {
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    z-index: -1;
    transition: left 0.3s ease;
}

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