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

body {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    line-height: 1.6;
    color: rgb(222, 87, 118);
    background-color: rgb(245, 248, 238);
}

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

/* Header */
.header {
    background: rgb(255, 202, 137);
    padding: 1.2rem 0;
}

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

.logo a {
    color: #491D17;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #491D17;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'DIN Neuzeit Grotesk', sans-serif;
}

.nav-link:hover {
    color: #DC5644;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.nav-user {
    color: #491D17;
    font-size: 0.85rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(73, 29, 23, 0.3);
    font-weight: 600;
    font-family: 'Dosis', sans-serif;
}

/* Main Content */
.main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Dosis', sans-serif;
}

.btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #DC5644;
    color: #F5F8EE;
}

.btn-primary:hover {
    background: #c44a3a;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn.active {
    background: #007bff;
}

/* Forms */
.form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #DC5644;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 86, 68, 0.1);
}

.form-help {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.inline-form {
    display: inline;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #a8e6cf;
    border-radius: 12px;
}

.alert-error {
    background: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
}

.auth-switch a {
    color: #007bff;
    text-decoration: none;
}

.demo-info {
    background: #fef5e7;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #fdeaa7;
}

.demo-info h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.view-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.date-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.current-date {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
    text-align: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

/* Room Cards */
.room-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    background: #fff;
}

.room-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.room-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.room-link {
    color: #2c3e50;
    text-decoration: none;
}

.room-link:hover {
    color: #DC5644;
}

.room-capacity {
    color: #6c757d;
    font-size: 0.9rem;
}

.room-bookings {
    margin-bottom: 1rem;
}

.no-bookings {
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}

.booking-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #DC5644;
    transition: all 0.2s ease;
}

.booking-item:hover {
    background: #fef5e7;
    transform: translateX(2px);
}

.booking-time {
    font-weight: 600;
    color: #2c3e50;
}

.booking-title {
    font-weight: 500;
    margin: 0.25rem 0;
}

.booking-user {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Calendar Grid Layout */
.calendar-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.time-column {
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
}

.time-slot {
    height: 60px;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.time-slot:last-child {
    border-bottom: none;
}

.bookings-column {
    background: white;
}

.bookings-column .time-slot {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.time-slot.has-booking {
    background: #fef5e7;
}

.booking-block {
    background: #DC5644;
    color: #F5F8EE;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.booking-block .booking-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-block .booking-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.booking-block .booking-user {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Weekly View */
.weekly-view {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.week-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.week-table th,
.week-table td {
    border: 1px solid #e9ecef;
    vertical-align: top;
}

.week-table th {
    background: #f8f9fa;
    padding: 0.5rem;
    text-align: center;
}

.time-header {
    background: #f8f9fa;
    width: 80px;
}

.day-header {
    min-width: 120px;
}

.room-row {
    min-height: 400px;
}

.time-column {
    background: #f8f9fa;
    width: 80px;
    padding: 0;
}

.day-column {
    min-width: 120px;
    padding: 0;
}

.time-slot-small {
    height: 40px;
    padding: 0.25rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    color: #666;
    font-weight: 500;
    background: white;
    position: relative;
}

.time-slot-small:last-child {
    border-bottom: none;
}

.time-slot-small.has-booking {
    background: #fef5e7;
}

.booking-block-small {
    background: #DC5644;
    color: #F5F8EE;
    padding: 0.25rem;
    border-radius: 2px;
    margin: 0.1rem;
    font-size: 0.6rem;
    line-height: 1.2;
}

.booking-block-small .booking-title-small {
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.booking-block-small .booking-time-small {
    font-size: 0.5rem;
    opacity: 0.9;
}

.day-header {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.day-name {
    font-weight: 600;
    color: #2c3e50;
}

.day-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.room-week {
    display: grid;
    grid-template-columns: 200px repeat(7, 1fr);
    border-bottom: 1px solid #e9ecef;
}

.room-name {
    padding: 1rem;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    font-weight: 600;
}

.room-name a {
    color: #2c3e50;
    text-decoration: none;
}

.day-bookings {
    padding: 0.5rem;
    border-right: 1px solid #e9ecef;
    min-height: 80px;
}

.no-bookings-small {
    color: #6c757d;
    text-align: center;
    padding: 1rem;
}

.booking-small {
    background: #fef5e7;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    position: relative;
    border: 1px solid #fdeaa7;
}

.booking-time-small {
    font-weight: 600;
    color: #DC5644;
}

.booking-title-small {
    margin: 0.25rem 0;
    font-weight: 500;
}

.booking-user-small {
    color: #6c757d;
    font-size: 0.75rem;
}

.delete-link {
    position: absolute;
    top: 2px;
    right: 4px;
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.delete-link:hover {
    color: #c82333;
}

/* Room Detail Page */
.room-detail .room-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

.room-info h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.room-description {
    color: #6c757d;
    margin-bottom: 1rem;
}

.room-rules {
    background: #fef5e7;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #fdeaa7;
}

.room-rules h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.rules-text {
    color: #6c757d;
    line-height: 1.8;
}

.calendar-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

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

.booking-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.booking-card:hover {
    background: #fef5e7;
    border-color: #fdeaa7;
    transform: translateX(2px);
}

.booking-main .booking-time {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.booking-duration {
    color: #6c757d;
    font-weight: normal;
}

.booking-main .booking-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.booking-form-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

/* Book Room Page */
.book-room {
    max-width: 800px;
    margin: 0 auto;
}

.booking-step {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

.booking-summary {
    background: #fef5e7;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    border: 1px solid #fdeaa7;
}

.available-rooms {
    margin-bottom: 2rem;
}

.room-option {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.room-option:hover {
    background: #fef5e7;
    border-color: #fdeaa7;
    transform: translateY(-2px);
}

.room-option h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.room-rules-preview {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.room-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-rooms {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.room-shortcuts {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.room-shortcut {
    padding: 0.5rem 1rem;
    background: #fef5e7;
    color: #DC5644;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.9rem;
    border: 1px solid #fdeaa7;
    transition: all 0.2s ease;
    font-family: 'Dosis', sans-serif;
}

.room-shortcut:hover {
    background: #fdeaa7;
    transform: translateY(-1px);
}

/* Admin Panel */
.admin-panel {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    padding: 1rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #2c3e50;
}

.tab.active {
    color: #DC5644;
    border-bottom-color: #DC5644;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    background: #fff;
}

.admin-form {
    background: #fef5e7;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #fdeaa7;
}

.admin-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.admin-item:hover {
    background: #fef5e7;
    border-color: #fdeaa7;
    transform: translateX(2px);
}

.item-info h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.item-meta, .booking-details, .user-details {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: rgb(255, 202, 137);
    color: #491D17;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin: 0;
    color: #491D17;
    font-size: 0.9rem;
    font-family: 'Dosis', sans-serif;
}

.footer a {
    color: #491D17;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Dosis', sans-serif;
}

.footer a:hover {
    color: #DC5644;
    background: rgba(73, 29, 23, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-controls {
        justify-content: space-between;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .room-option {
        flex-direction: column;
        gap: 1rem;
    }
    
    .room-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .admin-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .item-actions {
        align-self: flex-start;
    }
    
    .booking-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .week-header, .room-week {
        grid-template-columns: 150px repeat(7, minmax(80px, 1fr));
    }
    
    .day-header, .day-bookings, .room-name {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .action-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .room-shortcuts {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .week-header, .room-week {
        grid-template-columns: 100px repeat(7, minmax(60px, 1fr));
    }
    
    .day-header, .day-bookings, .room-name {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .booking-small {
        padding: 0.25rem;
        font-size: 0.7rem;
    }
    
    .current-date {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .date-nav {
        gap: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.text-muted {
    color: #6c757d;
}

.text-primary {
    color: #DC5644;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}
