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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: linear-gradient(135deg, #1A2F2E 0%, #0F1D1C 100%);
    min-height: 100vh;
    color: #E8F4F3;
}

.top-nav {
    background: rgba(44, 95, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E8F4F3;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    color: #2C5F5D;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: rgba(44, 95, 93, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(44, 95, 93, 0.2);
    margin: 4px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #2C5F5D;
}

.login-form.card {
    max-width: 600px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.login-form, .admin-panel, .user-panel, .todo-panel {
    display: none !important;
}

.login-form.active, .admin-panel.active, .user-panel.active, .todo-panel.active {
    display: block !important;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E8F4F3;
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C5F5D;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(44, 95, 93, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C5F5D;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(44, 95, 93, 0.2);
    border-radius: 8px;
    background: white;
    color: #2C5F5D;
    font-size: 0.9rem;
    min-width: 120px;
}

.category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-filter-btn {
    background: rgba(44, 95, 93, 0.1);
    border: 1px solid rgba(44, 95, 93, 0.2);
    color: #2C5F5D;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: linear-gradient(135deg, #2C5F5D 0%, #4A7C7A 100%);
    color: white;
    border-color: #2C5F5D;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(44, 95, 93, 0.1);
}

.pagination-info {
    color: #6B7280;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    background: rgba(44, 95, 93, 0.1);
    border: 1px solid rgba(44, 95, 93, 0.2);
    color: #2C5F5D;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #2C5F5D;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #2C5F5D 0%, #4A7C7A 100%);
    color: white;
}

.page-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(44, 95, 93, 0.1);
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: #2C5F5D;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2C5F5D 0%, #4A7C7A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 95, 93, 0.3);
}

.status-badge {
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: white;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 95, 93, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(44, 95, 93, 0.2);
}

.category-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2C5F5D;
    font-weight: 500;
}

.category-delete-btn {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-delete-btn:hover {
    background: linear-gradient(135deg, #C0392B 0%, #A93226 100%);
    transform: translateY(-1px);
}

/* Admin Tab Stilleri */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(44, 95, 93, 0.1);
    padding-bottom: 1rem;
}

.admin-tab-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(44, 95, 93, 0.2);
    color: #2C5F5D;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(44, 95, 93, 0.3);
    transform: translateY(-1px);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #2C5F5D 0%, #34705E 100%);
    color: white;
    border-color: #2C5F5D;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Nav Tab Stilleri */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-left: 2rem;
}

.nav-tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 13px;
}

.nav-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-tab-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #2C5F5D;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Admin Password Form */
.admin-password-form {
    display: none !important;
}

.admin-password-form.active {
    display: block !important;
}

/* Turnstile Captcha Stilleri */
.cf-turnstile {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.form-group .cf-turnstile {
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C5F5D;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E8F4F3;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2C5F5D;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #52C4A0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(82, 196, 160, 0.1);
}

.btn {
    background: linear-gradient(135deg, #E67E49 0%, #F4A261 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 8px 20px rgba(230, 126, 73, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #D66B36 0%, #E3914E 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(230, 126, 73, 0.4);
}

.btn:disabled {
    background: #B0BEC5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #52C4A0 0%, #4ECDC4 100%);
    box-shadow: 0 8px 20px rgba(82, 196, 160, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #46B591 0%, #45BAB3 100%);
}

.error {
    color: #E74C3C;
    margin-top: 12px;
    font-weight: 600;
    background: rgba(231, 76, 60, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #E74C3C;
}

.success {
    color: #27AE60;
    margin-top: 12px;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #27AE60;
}

.changelog-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 95, 93, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #52C4A0 0%, #4ECDC4 100%);
}

/* Changelog (completed) rengi - Yeşil */
.changelog-item[data-status="completed"]::before {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
}

/* TODO (pending) rengi - Turuncu */
.changelog-item[data-status="pending"]::before {
    background: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
}

.changelog-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.changelog-item h3 {
    color: #2C5F5D;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.changelog-meta {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-badge {
    background: linear-gradient(135deg, #E67E49 0%, #F4A261 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.date-badge {
    background: rgba(44, 95, 93, 0.1);
    color: #2C5F5D;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.logout-btn {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #C0392B 0%, #A93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(44, 95, 93, 0.1);
    border-radius: 12px;
    padding: 4px;
}

.mode-btn {
    flex: 1;
    background: transparent;
    color: #2C5F5D;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mode-btn.active {
    background: linear-gradient(135deg, #2C5F5D 0%, #4A7C7A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 95, 93, 0.3);
}

.admin-form {
    background: linear-gradient(135deg, rgba(82, 196, 160, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(82, 196, 160, 0.2);
}

.admin-form h3 {
    color: #2C5F5D;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-warning {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    float: right;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #C0392B 0%, #A93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.complete-btn {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    margin-left: 5px;
}

.complete-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27AE60 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
}

.todo-btn {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    margin-left: 5px;
}

.todo-btn:hover {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
}

.empty-state {
    text-align: center;
    color: #6B7280;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 2px dashed rgba(107, 114, 128, 0.3);
}

.empty-state::before {
    content: "📝";
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .top-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .mode-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .changelog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .delete-btn {
        float: none;
        margin-top: 8px;
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .user-menu-dropdown {
        right: auto;
        left: 0;
        min-width: 180px;
    }
}

/* Fotoğraf upload form stilleri */
.image-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.btn-remove-image {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-remove-image:hover {
    background: #c53030;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0 5px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    transition: width 0.3s ease;
    width: 0%;
}

#upload-progress {
    margin-top: 10px;
}

#progress-text {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Entry image stilleri */
.entry-image-container {
    margin-top: 10px;
    text-align: center;
}

.entry-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.entry-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Modal stilleri */
.image-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(5px);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001;
    border: none;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.modal-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobil responsive fotoğraf stilleri */
@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .modal-image {
        max-width: 98vw;
        max-height: 98vh;
    }

    .entry-image {
        max-height: 200px;
    }

    .image-preview img {
        max-width: 150px;
        max-height: 150px;
    }
}
