:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --background-color: #fafbfc;
    --text-color: #1f2937;
    --subtle-text-color: #6b7280;
    --border-color: #e5e7eb;
    --surface-color: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1000px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 40px 20px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.login-container {
    max-width: 420px;
    margin: 10vh auto;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1, h2 {
    color: var(--text-color);
    font-weight: 700;
    margin: 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin: 60px 0 30px 0;
    color: var(--text-color);
    position: relative;
    text-align: right;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    background: var(--surface-color);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.user-info {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.trash-btn:hover {
    background: var(--danger-color) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

form {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: #fafbfc;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    margin-bottom: 20px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.error {
    color: var(--danger-color);
    background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
    border: 1px solid #fca5a5;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.success {
    color: var(--secondary-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

button, .btn {
    padding: 16px 32px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
}

button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

/* Notes Container - Clean Modern Cards */
#notlar-konteyneri {
    display: grid;
    gap: 30px;
}

#notlar-konteyneri .not {
    background: var(--surface-color);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

#notlar-konteyneri .not:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.not-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.not-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='50' cy='50' r='4'/%3E%3Ccircle cx='10' cy='10' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.not-header h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.not-header small {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.not-content {
    padding: 30px;
}

/* Modern Perspective Cards */
.perspectives-list {
    margin-bottom: 30px;
    display: grid;
    gap: 20px;
}

.perspective-item {
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    position: relative;
}

.perspective-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.perspective-item:hover .perspective-delete-btn {
    opacity: 1 !important;
}

.perspective-delete-btn:hover {
    background: var(--danger-color) !important;
    color: white !important;
    transform: scale(1.1);
}

.perspective-item h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perspective-item p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-wrap;
}

/* Clean Add Perspective Form */
.add-perspective-form {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.add-perspective-form:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border-style: solid;
}

.add-perspective-form h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.add-perspective-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafbfc;
    margin-bottom: 15px;
}

.add-perspective-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.add-perspective-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.add-perspective-form button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Modern Delete Button */
.sil-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--danger-color);
    border-radius: 12px;
    width: 36px;
    height: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    cursor: pointer;
}

.not:hover .sil-btn {
    opacity: 1;
    transform: scale(1.05);
}

.sil-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Clean Footer */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 20px 20px 0 0;
}

footer p {
    margin: 0;
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--primary-hover);
    text-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

/* File Upload Styling */
.file-upload-section {
    margin: 15px 0;
    padding: 15px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.file-upload-section:hover {
    border-color: var(--primary-color);
    background: #f8faff;
}

.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
    z-index: 1;
}

/* Ensure file inputs don't interfere with other elements */
input[type="file"] {
    pointer-events: auto;
    z-index: -1;
}

input[type="file"]:focus {
    outline: none;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.file-preview {
    margin-top: 10px;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 100%;
    overflow: hidden;
}

.file-preview-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-color);
}

.file-remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.file-remove-btn:hover {
    background: var(--danger-hover);
    transform: scale(1.1);
}

/* Perspective Files Display */
.perspective-files {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.files-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.file-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    /* iOS Safari touch fixes */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.file-thumbnail:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-thumbnail:hover img {
    transform: scale(1.1);
}

.file-thumbnail.video-thumbnail {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.file-thumbnail.video-thumbnail::before {
    content: '▶';
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.file-thumbnail.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.file-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-type-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* Media Gallery Modal */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    /* Safari fixes */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.media-modal.active {
    opacity: 1;
    visibility: visible;
}

.media-modal-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Safari fixes */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.media-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.media-modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.media-modal-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.media-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.media-modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

.media-modal-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.media-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Safari fixes */
    -webkit-transform: translateX(100px);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.media-slide.active {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.media-slide.prev {
    transform: translateX(-100px);
    -webkit-transform: translateX(-100px);
}

.media-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.media-slide video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.media-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.media-nav-btn.prev {
    left: 20px;
}

.media-nav-btn.next {
    right: 20px;
}

.media-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.media-modal-footer {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
}

.media-file-name {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.media-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 0 10px;
}

.media-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.media-thumb.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumb.video-thumb {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: calc(100% - 30px);
        padding: 20px 15px;
        margin: 0 auto;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    form {
        padding: 30px 20px;
    }
    
    .not-header {
        padding: 25px 20px;
    }
    
    .not-content {
        padding: 25px 20px;
    }
    
    .perspective-item {
        padding: 20px;
    }
    
    .add-perspective-form {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin: 40px 0 25px 0;
    }

    .image-modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .file-upload-section {
        padding: 10px;
    }

    .file-upload-label {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* Date Filter Styles */
.date-filter-section {
    margin-bottom: 30px;
}

.date-filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-picker-wrapper label {
    font-weight: 700;
    color: var(--text-color);
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.date-input {
    padding: 12px 18px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.date-input:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.today-btn, .all-dates-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.today-btn::before, .all-dates-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.today-btn:hover::before, .all-dates-btn:hover::before {
    left: 100%;
}

.today-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.today-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.today-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.all-dates-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.all-dates-btn:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.all-dates-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.date-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.date-info span {
    font-weight: 600;
    color: var(--text-color);
}

#date-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

#notes-count {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness for date filter */
@media (max-width: 768px) {
    .date-filter-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 20px;
        margin: 15px 0;
    }
    
    .date-picker-wrapper {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .date-picker-wrapper label {
        font-size: 15px;
        text-align: center;
        width: 100%;
    }
    
    .date-input {
        min-width: 140px;
        flex: 1;
        max-width: 200px;
    }
    
    .today-btn, .all-dates-btn {
        padding: 12px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
    }
    
    .date-info {
        align-items: center;
        text-align: center;
        margin-top: 10px;
    }
    
    #date-display {
        font-size: 16px;
    }
    
    #notes-count {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    /* Media modal mobile responsiveness */
    .media-modal-container {
        width: 95vw;
        height: 95vh;
        border-radius: 15px;
    }
    
    .media-modal-header {
        padding: 15px 20px;
    }
    
    .media-modal-title {
        font-size: 16px;
    }
    
    .media-modal-counter {
        font-size: 12px;
    }
    
    .media-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .media-nav-btn.prev {
        left: 10px;
    }
    
    .media-nav-btn.next {
        right: 10px;
    }
    
    .media-modal-footer {
        padding: 15px 20px;
    }
    
    .media-file-name {
        font-size: 14px;
    }
    
    .media-thumbnails {
        gap: 6px;
        margin-top: 10px;
    }
    
    .media-thumb {
        width: 50px;
        height: 50px;
    }
    
    .files-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .file-thumbnail {
        height: 100px;
    }
}

/* Note: Custom source selection modal CSS removed - now using native iOS context menu */
