@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #4f46e5;
    --accent: #f59e0b;
    --light: #ffffff;
    --dark: #1e293b;
    --success: #10b981;
    --danger: #ef4444;
    --surface-color: #f9fafb;
    --text-secondary: #6b7280;
    --font-family: 'Roboto', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Main content wrapper */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: padding-left 0.3s ease;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* Adjust content when sidebar is open on desktop */
@media (min-width: 769px) {
    body.nav-open {
        padding-left: 280px;
    }

    body.nav-open app-header,
    body.nav-open search-bar,
    body.nav-open main,
    body.nav-open room-grid {
        width: 100%;
        max-width: none;
    }
}

/* Ensure mobile doesn't have padding */
@media (max-width: 768px) {
    body {
        padding-left: 0 !important;
    }
}

/* Ensure all content respects the layout */
app-header,
search-bar,
main,
room-grid {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent content from extending beyond viewport */
* {
    box-sizing: border-box;
}

/* Fix for any fixed positioned elements */
.fixed-content {
    transition: left 0.3s ease;
}

@media (min-width: 769px) {
    body.nav-open .fixed-content {
        left: 280px;
    }
}
