/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Language Selector */
.language-selector {
    position: static;   /* fixed deyilsin */
    top: auto; right: auto;
    margin-left: 6px;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e5e7eb;
    color: #111827;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 110px;
    cursor: pointer;
    transition: all .2s ease;
}

.language-selector select:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.18);
    transform: translateY(-1px);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    margin-bottom: 30px;
}

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

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

.gift-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

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

.logo h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 12px;
    line-height: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-btn.active {
    background: rgba(52, 211, 153, 0.8);
    color: white;
}

.add-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* Main Layout */
.main {
    padding-bottom: 40px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Calendar Section */
.calendar-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.nav-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#currentMonth {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.day-header {
    background: #f3f4f6;
    padding: 15px 8px;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f8fafc;
    transform: scale(1.02);
}

.calendar-day.today {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.calendar-day.other-month {
    background: #f9fafb;
    color: #9ca3af;
}

.day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.birthday-item {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.birthday-item.family { background: linear-gradient(135deg, #ef4444, #dc2626); }
.birthday-item.friend { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.birthday-item.classmate { background: linear-gradient(135deg, #10b981, #059669); }
.birthday-item.university { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.birthday-item.colleague { background: linear-gradient(135deg, #f59e0b, #d97706); }
.birthday-item.relative { background: linear-gradient(135deg, #ec4899, #db2777); }
.birthday-item.other { background: linear-gradient(135deg, #6b7280, #4b5563); }

.more-birthdays {
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.sidebar-title .count {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-filters input,
.search-filters select {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-filters input:focus,
.search-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.upcoming-list,
.birthdays-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.birthday-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.birthday-card:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.birthday-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.relationship-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.birthday-details h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.birthday-details p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 1px;
}

.birthday-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.birthday-card:hover .birthday-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.zodiac-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.zodiac-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.zodiac-details {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

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

.zodiac-item .icon {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.zodiac-item .label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.zodiac-item .value {
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.cancel-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Details Modal */
.details-content {
    padding: 30px;
}

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

.person-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.person-header .age {
    font-size: 16px;
    opacity: 0.9;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}

.detail-item .label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.detail-item .value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.connections-section {
    margin-top: 30px;
}

.connections-section h4 {
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 600;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.connection-item .relationship-dot {
    width: 8px;
    height: 8px;
}

/* Multiple Birthdays Modal */
.multiple-birthdays-content {
    padding: 30px;
}

.multiple-birthday-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.multiple-birthday-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.multiple-birthday-item .relationship-dot {
    width: 12px;
    height: 12px;
}

.multiple-birthday-info h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.multiple-birthday-info p {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .calendar-grid {
        font-size: 12px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .add-btn span:not(.plus-icon) {
        display: none;
    }

    .calendar-day {
        min-height: 60px;
        padding: 3px;
    }

    .birthday-item {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}