/* Trip Planner Styles - Orbites Theme */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-image: url('../branding/login-background.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
}

/* ===== AUTH LOADING ===== */
.auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-loading.hidden {
    display: none;
}

.auth-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-loading-logo {
    width: 70px;
    height: 70px;
    animation: pulse 2s ease-in-out infinite;
}

.auth-loading-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.back-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #4ecdc4;
    color: #1a1a2e;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

#userName {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    z-index: 99;
    background: rgba(37, 37, 66, 0.95);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    color: #00d9ff;
    cursor: pointer;
}

.mobile-categories-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    background: #00d9ff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    color: #1a1a2e;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

/* ===== 3 COLUMN LAYOUT ===== */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 0;
    min-height: 100vh;
    padding-top: 70px;
}

/* ===== SIDEBARS ===== */
.sidebar {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
}

.sidebar-right {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

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

.sidebar-header h2 {
    font-size: 1rem;
    color: #00d9ff;
    font-weight: 600;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

/* Year Selector */
.year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
}

.year-btn {
    background: none;
    border: none;
    color: #00d9ff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.year-btn:hover {
    background: rgba(0, 217, 255, 0.2);
}

.year-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Month Selection */
.month-selection h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 12px;
}

.month-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.month-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.month-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-align: center;
}

.month-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.month-checkbox.selected {
    background: rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.5);
}

.month-checkbox input[type="checkbox"] {
    display: none;
}

.month-checkbox span {
    font-size: 0.8rem;
    white-space: nowrap;
}

.month-checkbox.selected span {
    color: #00d9ff;
    font-weight: 600;
}

/* Trips Section */
.trips-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trips-header h3 {
    font-size: 0.9rem;
    color: #888;
}

.trips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trip-item {
    padding: 12px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00ff88;
    cursor: pointer;
    transition: all 0.2s;
}

.trip-item:hover {
    background: rgba(0, 255, 136, 0.2);
}

.trip-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.trip-dates {
    font-size: 0.85rem;
    color: #888;
}

.no-trips {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-toggle {
    display: flex;
    background: rgba(37, 37, 66, 0.8);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.view-btn:hover {
    color: #fff;
}

.view-btn.active {
    background: #00d9ff;
    color: #1a1a2e;
}

/* ===== CALENDAR ===== */
.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calendar-month {
    background: rgba(37, 37, 66, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.calendar-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    text-align: center;
}

.month-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weekday {
    padding: 14px 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00d9ff;
    text-transform: capitalize;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 90px;
    padding: 10px;
    background: rgba(37, 37, 66, 0.9);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: rgba(0, 217, 255, 0.15);
}

.calendar-day.other-month {
    background: rgba(60, 60, 90, 0.5);
    cursor: default;
}

.calendar-day.other-month .day-number {
    color: #666;
}

.calendar-day.other-month:hover {
    background: rgba(60, 60, 90, 0.5);
}

.calendar-day.today {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: inset 0 0 0 2px #00d9ff;
}

.calendar-day.has-type {
    border-left: 3px solid var(--type-color, #00d9ff);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 4px;
}

.day-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.calendar-day.today .day-number {
    background: #00d9ff;
    color: #1a1a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.day-trip-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    color: #00ff88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.day-elements {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 217, 255, 0.3) transparent;
}

.day-elements::-webkit-scrollbar {
    width: 4px;
}

.day-elements::-webkit-scrollbar-track {
    background: transparent;
}

.day-elements::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 2px;
}

.day-elements::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

/* Type element - highlighted */
.day-type-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(0, 255, 136, 0.2) 100%);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00d9ff;
    margin-bottom: 2px;
}

.day-type-badge .type-emoji {
    font-size: 0.85rem;
}

.day-type-badge .type-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Regular elements */
.element-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: default;
}

.element-chip .el-emoji {
    flex-shrink: 0;
    font-size: 0.8rem;
}

.element-chip .el-desc {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.8);
}

.element-chip .el-expand {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #00d9ff;
    font-size: 0.7rem;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.element-chip .el-expand:hover {
    opacity: 1;
    background: rgba(0, 217, 255, 0.2);
}

.element-chip.multi-day {
    background: rgba(0, 255, 136, 0.15);
    border-left: 2px solid #00ff88;
}

.more-elements {
    font-size: 0.7rem;
    color: #00d9ff;
    padding: 2px 6px;
    text-align: center;
}

/* Description Popup */
.desc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desc-popup-overlay.hidden {
    display: none;
}

.desc-popup {
    background: #252542;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.desc-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desc-popup-emoji {
    font-size: 1.5rem;
}

.desc-popup-category {
    font-weight: 600;
    color: #00d9ff;
}

.desc-popup-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    white-space: pre-wrap;
}

.desc-popup-close {
    display: block;
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.desc-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== LIST VIEW ===== */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-container.hidden {
    display: none;
}

.list-day {
    background: rgba(37, 37, 66, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.list-day:hover {
    border-color: rgba(0, 217, 255, 0.3);
}

.list-day-header {
    padding: 14px 16px;
    background: rgba(0, 217, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-day-date {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.list-day-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(0, 255, 136, 0.2) 100%);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00d9ff;
}

.list-day-elements {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-element {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00d9ff;
}

.list-element-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.list-element-content {
    flex: 1;
    min-width: 0;
}

.list-element-category {
    font-size: 0.8rem;
    color: #00d9ff;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-element-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.list-no-elements {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.list-element-dates {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* ===== CATEGORIES SIDEBAR ===== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Type Section - Special styling */
.type-section-sidebar {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.type-emoji {
    font-size: 1.3rem;
}

.type-title {
    font-weight: 600;
    color: #00d9ff;
    font-size: 0.95rem;
}

.subtypes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subtype-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: default;
}

.subtype-emoji {
    font-size: 1rem;
}

.subtype-name {
    color: #fff;
}

.subtype-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 217, 255, 0.2);
    border: 1px dashed rgba(0, 217, 255, 0.5);
    border-radius: 50%;
    color: #00d9ff;
    cursor: pointer;
    transition: all 0.2s;
}

.subtype-add-btn:hover {
    background: rgba(0, 217, 255, 0.3);
    border-style: solid;
}

/* Other Categories Section */
.other-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.other-categories-title {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-emoji {
    font-size: 1.2rem;
}

.category-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: #00d9ff;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #00c4e6;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #ff4757;
    color: #fff;
}

.btn-danger:hover {
    background: #e63e4d;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #252542;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #00d9ff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: #ff4757;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Type Section in Day Modal */
.type-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.required-label {
    display: block;
    font-size: 0.85rem;
    color: #00d9ff;
    margin-bottom: 8px;
    font-weight: 500;
}

.type-select {
    width: 100%;
    padding: 12px;
    background: rgba(37, 37, 66, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #888;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(37, 37, 66, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
}

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

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Day Elements in Modal */
.day-elements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.element-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #00d9ff;
}

.element-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.element-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #00d9ff;
}

.element-title-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(37, 37, 66, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.element-title-input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(37, 37, 66, 1);
}

.element-title-input::placeholder {
    color: #666;
}

.element-dates {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.element-row .btn-danger {
    flex-shrink: 0;
    align-self: center;
}

.empty-elements {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* Add Element Section */
.add-element-section {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.add-element-select {
    flex: 1;
    padding: 10px 12px;
    background: rgba(37, 37, 66, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
}

/* Emoji Picker */
.emoji-picker-container {
    position: relative;
}

.emoji-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #252542;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.emoji-picker.hidden {
    display: none;
}

.emoji-picker button {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.emoji-picker button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

.sidebar-overlay.show {
    display: block;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* ===== FLATPICKR CUSTOMIZATION ===== */
.flatpickr-calendar {
    background: #252542 !important;
    border: 1px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

.flatpickr-months {
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.flatpickr-months .flatpickr-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-current-month {
    color: #00d9ff !important;
}

.flatpickr-weekday {
    color: #00d9ff !important;
}

.flatpickr-day {
    color: #fff;
}

.flatpickr-day:hover {
    background: rgba(0, 217, 255, 0.2) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #00d9ff !important;
    border-color: #00d9ff !important;
    color: #1a1a2e !important;
}

.flatpickr-day.inRange {
    background: rgba(0, 217, 255, 0.3) !important;
    border-color: transparent !important;
}

.flatpickr-day.today {
    border-color: #00ff88 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 70px;
        bottom: 0;
        z-index: 99;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-left {
        left: 0;
        width: 300px;
    }

    .sidebar-right {
        right: 0;
        left: auto;
        width: 300px;
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .mobile-menu-btn,
    .mobile-categories-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 12px 16px;
    }

    .nav-brand {
        display: none;
    }

    #userName {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

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

    .day-number {
        font-size: 0.8rem;
    }

    .day-element {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .view-btn span {
        display: none;
    }

    .modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
}

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

::-webkit-scrollbar-track {
    background: #252542;
}

::-webkit-scrollbar-thumb {
    background: #3a3a5c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d9ff;
}
