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

:root {
    --primary-color: #000;
    --background-light: #fff;
    --background-dark: #1a1a1a;
    --text-primary: #000;
    --text-secondary: #666;
    --border-radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ECECEC;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navigation - Desktop Sidebar */
.desktop-nav {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
}

.desktop-nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
    font-weight: 700;
}

.desktop-nav-item:hover,
.desktop-nav-item.active {
    background: #f5f5f5;
}

.desktop-nav-item img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/* Navigation - Mobile Bottom Bar */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 5px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Main Content Area */
.main-content {
    margin-left: 0;
    padding-bottom: 80px;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .main-content {
        margin-left: 250px;
        padding-bottom: 20px;
    }
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, .page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

.card h3 {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
}

/* Input Fields */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* Image Thumbnail */
.image-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Screen Card */
.screen-card {
    background: #000;
    border-radius: 0;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.screen-card-label {
    margin-top: 10px;
    font-weight: 500;
    font-size: 16px;
}

.screen-address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Video Player */
.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Full Screen Modal */
.modal-full {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-light);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-full .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Login Page Specific */
.login-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.login-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 600px;
}

.login-hero-content h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.login-hero-content p {
    font-size: 16px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.login-form-card {
    background: url('../login_card.png') no-repeat center;
    background-size: 100% 100%;
    padding: 30px;
    margin: -50px 20px 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.login-form-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.login-form-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.login-links {
    text-align: center;
    margin-top: 15px;
}

.login-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 10px;
}

.login-links a:hover {
    text-decoration: underline;
}
