/* --- Keep all previous CSS variables and basic styles --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #d0d0d0;
    --background-color: #eef1f5;
    --card-background: #ffffff;
    --text-color: #333;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    --door-color: #a0a0a0; /* Added for door visual */
    --door-border: #666;
    --window-color: #d0e4f8;
}

#chromeTitle {
    font-size: 4em; 
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    
    /* Construct the gradient directly here with 4-6 (or more) color stops */
    background-image: linear-gradient(
        180deg, /* Gradient direction: top to bottom */
        #F0F0F0,  /* Stop 1: Very light top highlight */
        #DCDCDC,  /* Stop 2: Lighter silver */
        #A9A9A9,  /* Stop 3: Medium gray (main body) */
        #808080,  /* Stop 4: Darker gray (core shadow) */
        #A9A9A9,  /* Stop 5: Medium gray (reflection from bottom) */
        #DCDCDC   /* Stop 6: Lighter silver bottom edge */
    );
    
    /* If you defined variables in :root, you could use them: */
    /*
    background-image: linear-gradient(
        180deg,
        var(--light-silver),
        var(--mid-silver),
        var(--dark-silver-shadow),
        var(--reflection-silver),
        var(--mid-silver),
        var(--light-silver) 
    );
    */
    
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);

}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px; /* Wider container for multiple doors */
    margin: 20px auto;
    background-color: transparent;
}

header, footer {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

header h1 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* Container for the doors */
.doors-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-around; /* Distribute space */
    gap: 20px; /* Space between cards */
}

/* Individual Door Card */
.door-card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    flex: 1 1 350px; /* Flex-grow, flex-shrink, basis (min-width) */
    min-width: 320px; /* Ensure cards don't get too narrow */
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    margin-bottom: 20px; /* Ensure space below if wrapped */
}

/* Header section within the card */
.door-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.door-name {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    cursor: text; /* Indicate it's editable */
    outline: none; /* Remove outline when focused */
}
.door-name:focus {
    background-color: #f0f8ff; /* Slight highlight when editing */
    padding: 2px 5px;
    border-radius: 3px;
}


/* Simple Visual Door Representation */
.door-visual {
    width: 80px;
    height: 120px;
    background-color: var(--door-color);
    border: 2px solid var(--door-border);
    border-radius: 5px 5px 0 0; /* Rounded top corners */
    margin: 0 auto; /* Center the door */
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.door-window {
    width: 50px;
    height: 40px;
    background-color: var(--window-color);
    border: 1px solid var(--door-border);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.door-handle {
    width: 6px;
    height: 15px;
    background-color: var(--door-border);
    position: absolute;
    top: 65px;
    right: 10px;
    border-radius: 2px;
}

/* Scheduler and Schedule List Sections */
.scheduler-controls,
.current-schedules {
    margin-top: 15px;
}

.scheduler-controls h3,
.current-schedules h3 {
    font-size: 1.1em;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

/* Form Styling adjustments within card */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em; /* Slightly smaller labels */
}
.form-group input[type="datetime-local"] {
    width: 100%;
    padding: 8px 10px; /* Slightly smaller padding */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem;
    transition: border-color 0.2s ease-in-out;
}
.form-group input[type="datetime-local"]:focus {
     outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.form-group small { /* Hide the small text for space */
   display: none;
}


/* Button Styling */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 15px; /* Adjusted padding */
    font-size: 0.95rem; /* Adjusted font size */
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px; /* Add space above button */
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Schedule List Styling */
.current-schedules ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px; /* Limit height and allow scroll if needed */
    overflow-y: auto; /* Add scrollbar if list exceeds max-height */
}

.current-schedules li {
    background-color: var(--light-color);
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em; /* Smaller text for schedules */
    line-height: 1.4;
}
.current-schedules li span strong {
    display: block; /* Put start/end time on separate lines */
}

.current-schedules li.placeholder {
    color: var(--secondary-color);
    font-style: italic;
    background-color: transparent;
    border: none;
    justify-content: center;
    text-align: center;
    font-size: 0.9em;
    padding: 10px 0;
}

.delete-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 4px 8px; /* Smaller button */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em; /* Smaller text */
    margin-left: 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
}

.delete-btn:hover {
    background-color: #c82333;
}

.error-text {
    color: var(--danger-color);
    font-size: 0.85em;
    margin-top: 8px;
    min-height: 1.1em;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .door-card {
        flex-basis: 100%; /* Stack cards vertically on smaller screens */
    }
    .container {
        max-width: 95%;
    }
}
/* =================================================== */
/* === Custom Chrome Brand Styles for Navbar       === */
/* =================================================== */

/* The main container for our custom brand */
.navbar-brand-custom {
    font-weight: 700; /* Makes the font bold */
    font-size: 1.8rem; /* Makes it larger and more prominent */
    padding: 5px 15px; /* Adds some space around the text */
    border-radius: 8px; /* Slightly rounds the corners */
    border: 1px solid #999; /* A subtle border */
    
    /* The "chrome" gradient applied to the text */
    background: linear-gradient(to bottom, #F5F5F5, #C0C0C0, #F0F0F0);
    -webkit-background-clip: text; /* Clips the background to the text (for Chrome/Safari) */
    background-clip: text;
    color: transparent; /* Makes the actual text color transparent to show the gradient */

    /* A 3D/embossed effect to make it pop */
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.3);
    
    transition: all 0.3s ease-in-out;
}

/* Styling for the special leaning "L" */
.leaning-l {
    display: inline-block; /* Allows us to apply transforms */
    transform: skewX(-15deg); /* This makes it lean to the right */
    color: #28a745; /* A nice green for the "on" state of the toggle */
    
    /* We need to re-apply the text-shadow because the color change overrides it */
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease-in-out;
}

/* A fun little effect on hover: the L straightens up */
.navbar-brand-custom:hover .leaning-l {
    transform: skewX(0deg);
    color: #007bff; /* Changes to blue on hover */
}
