/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #e7e9ea;
    line-height: 1.4;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1117 100%);
}

.login-card {
    background: #1c1e21;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1d9bf0, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card p {
    color: #8b949e;
    margin-bottom: 2rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: #1f2937;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.google-signin-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* App Container */
.app-container {
    min-height: 100vh;
    background: #000;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #2f3336;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #8b949e;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: #1d9bf0;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1a8cd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #e7e9ea;
    border: 1px solid #536471;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #1c1e21;
    border-color: #8b949e;
}

.btn-add {
    background: transparent;
    color: #1d9bf0;
    border: 1px solid #1d9bf0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add:hover {
    background: rgba(29, 155, 240, 0.1);
}

.btn-nav {
    background: transparent;
    color: #e7e9ea;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: #1c1e21;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Calendar */
.calendar-container {
    background: #1c1e21;
    border: 1px solid #2f3336;
    border-radius: 16px;
    padding: 1.5rem;
}

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

.calendar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

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

.calendar-day-header {
    background: #1c1e21;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
}

.calendar-day {
    background: #1c1e21;
    min-height: 80px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #252729;
}

.calendar-day.other-month {
    color: #536471;
    background: #16181c;
}

.calendar-day.today {
    background: rgba(29, 155, 240, 0.1);
    border: 1px solid #1d9bf0;
}

.day-number {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.trip-indicator {
    background: linear-gradient(135deg, #1d9bf0, #8b5cf6);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-bottom: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Sidebar */
.sidebar {
    background: #1c1e21;
    border: 1px solid #2f3336;
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.trip-card {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trip-card:hover {
    border-color: #1d9bf0;
    background: #1a1c20;
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.trip-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.trip-dates {
    color: #8b949e;
    font-size: 0.8rem;
}

.trip-destination {
    color: #1d9bf0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.trip-summary {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #8b949e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1c1e21;
    border: 1px solid #2f3336;
    border-radius: 16px;
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #8b949e;
    transition: color 0.2s ease;
}

.close:hover {
    color: #e7e9ea;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #e7e9ea;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #2f3336;
    border-radius: 8px;
    background: #16181c;
    color: #e7e9ea;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.1);
}

input::placeholder {
    color: #536471;
}

/* Trip Sections */
.trip-sections {
    margin: 2rem 0;
}

.section {
    border: 1px solid #2f3336;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section h3 {
    background: #16181c;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    border-bottom: 1px solid #2f3336;
}

.section-content {
    padding: 1.5rem;
}

.detail-item {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.remove-item {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.remove-item:hover {
    background: #b91c1c;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #2f3336;
}

.form-actions button {
    min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .calendar-day {
        min-height: 60px;
    }
    
    .trip-summary {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #1c1e21;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}