/* AutoBell-Net Login Page - Modern Design */
:root {
    --primary-color: #1a1b2a;
    --secondary-color: #2d3748;
    --accent-color: #1f4166;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
    --card-bg: #2d3748;
    --sidebar-bg: #1a202c;
    --gradient-primary: linear-gradient(135deg, #0f1419 0%, #1a1b2a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #0056b3);
    --gradient-success: linear-gradient(135deg, #28a745, #20c997);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
    overflow-y: auto; /* Allow vertical scrolling */
    position: relative;
    /* Disable text selection and cursor for entire body */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

/* Background Effects */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(31, 65, 102, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(40, 167, 69, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10px, -10px) scale(1.02); }
    50% { transform: translate(10px, -5px) scale(0.98); }
    75% { transform: translate(-5px, 10px) scale(1.01); }
}

/* Main Container */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 20px 100px 20px; /* Added bottom padding to clear fixed footer */
    position: relative;
    z-index: 1;
    /* padding-top: 8vh; */
}

/* Brand Section */
.login-brand {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Login Cards */
.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px;
    padding-bottom: 30px; /* Ensure bottom content is visible */
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: visible; /* Allow content to be visible */
    animation: fadeInUp 1s ease-out 0.2s both;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.create-account-card::before {
    background: var(--gradient-success);
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    padding: 12px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    /* Enable text selection and text cursor for input fields */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(31, 65, 102, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Autofill Styles */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--card-bg) inset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Mobile Safari Input Text Color Fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-control,
    .form-control:focus,
    .form-control:active {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* Additional mobile input fixes */
input.form-control,
input.form-control:focus,
input.form-control:active {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.login-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin: 10px 0;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(31, 65, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 65, 102, 0.4);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    color: var(--text-light);
    transform: translateY(-1px);
}

.btn-outline-success {
    background: transparent;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-1px);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-actions .btn {
    flex: 1;
}

/* Alert Container */
.alert-container {
    margin-top: 20px;
    min-height: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideInAlert 0.3s ease-out;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #d4edda;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #f8d7da;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-light);
}

.separator {
    color: var(--border-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 27, 42, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--accent-color);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        /* padding: 20px 15px 15px 15px; */
        justify-content: flex-start;
       /*  padding-top: 5vh; */
        padding-top: 5px; /* tighten top spacing on mobile */
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: calc(110px + env(safe-area-inset-bottom)); /* ensure bottom buttons clear fixed footer */
    }
    
    .login-brand {
        margin-bottom: -10px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .login-card {
        padding: 28px 18px; /* slight reduction to gain width */
        width: 100%;
        max-width: 640px; /* allow wider card on mobile portrait */
        margin-bottom: 120px; /* leave space above fixed footer */
    }

    /* Create Account card can be taller; allow internal scroll on mobile */
    .login-card.create-account-card {
        /* Override base overflow hidden */
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* smooth iOS momentum scrolling */
        overscroll-behavior: contain;      /* prevent page bounce */
        /* Fit viewport minus brand + footer paddings */
        max-height: calc(100dvh - 220px);
    }

    /* Keep the card header visible while scrolling long forms */
    .create-account-card .card-header {
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--card-bg);
        padding-top: 8px;
        margin-top: -8px; /* compensate padding so layout doesn’t shift */
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px; /* Add consistent gap between buttons */
    }
    
    .form-actions .btn {
        width: 100%; /* Make buttons full width */
        margin: 0; /* Remove any default margins */
        padding: 14px 16px; /* Ensure adequate padding */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        gap: 10px;
    }

    .footer-brand-text {
         margin-bottom: 0px;
    }
    
    /* Force white text color for form inputs on mobile */
    .form-control {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
    
    .form-control:focus {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding-top: 5px; /* match mobile top spacing on very narrow screens */
    }
    .login-card {
        border-radius: 15px; /* Slightly smaller border radius on very small screens */
        padding: 22px 14px; /* Further reduced padding for very small screens */
        width: 125%;
        max-width: 96vw; /* Use viewport width to ensure fullness */
        margin-bottom: 35px; /* extra clearance above footer */
    }

    /* Slightly more conservative height on very small screens */
    .login-card.create-account-card {
        max-height: calc(100dvh - 200px);
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem; /* Slightly smaller font for better fit */
    }
    
    .login-btn {
        padding: 16px;
    }
    
    .form-actions .btn {
        padding: 12px 16px; /* Consistent button padding on small screens */
        width: 100%;
    }
    
    /* Force white text color for form inputs on small mobile screens */
    .form-control {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
    
    .form-control:focus {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--gradient-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pattern-overlay {
        animation: none;
    }
    
    .brand-logo {
        animation: none;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Allow text selection for specific elements that users might want to copy */
.brand-title,
.brand-subtitle,
.card-title,
.card-subtitle,
.form-label,
.form-text,
.footer-link,
.alert {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Buttons should have pointer cursor */
.btn,
button {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Links should have pointer cursor */
a,
.footer-link {
    cursor: pointer;
}

/* Textareas should also allow text selection */
textarea.form-control {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
    resize: vertical;
}

/* Selection styles for highlighted text */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}
/* Zoomed-in modal styles for mobile devices */
@media only screen and (max-width: 375px) { /* Exact width for iPhone 11 Pro in portrait */
    .modal-content {
        width: 90vw; 
        padding: 30px;
        font-size: 18px;
	    background-color: red; 
        /* other zoomed-in styles... */
    }
}

.logModalClose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
	background-color:#2E3047;
	color:white;
	font-size:18px;
	cursor: pointer;
}

@media only screen and (max-width: 375px) { /* Exact width for iPhone 11 Pro in portrait */
 .create-account-modal {
        width: 90vw; 
        padding: 30px;
        font-size: 18px;
	    background-color: red; 
        /* other zoomed-in styles... */
    }
}

.no-select {
    -webkit-touch-callout: none;  /* iOS Safari */
    -webkit-user-select: none;    /* Safari */
    -khtml-user-select: none;     /* Konqueror HTML */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* Internet Explorer/Edge */
    user-select: none;            /* Non-prefixed version, currently supported by Chrome, Opera, and Firefox */
}


body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    background-color: #2E3047; /* light grey background */
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
	
	/* This prevents the page to bounce on iOS */
    /*position: fixed;*/
    /* overflow: hidden;*/
    /* width: 100%;
    height: 100%;*/
  }
  
.login-panel { 
	background-color: #707794; 
	padding: 20px; 
	border-radius: 30px; 
	width: 250px; 
	height:375px;
	margin: 100px;
}

.create-user-panel { 
	background-color: #707794; 
	padding: 20px; 
	border-radius: 30px; 
	width: 250px; 
	height:520px;
	margin: 100px;
}

.create-user-button{ 
    opacity: 1;
    font-size: 15px;
    text-align: center;
	color: #eee;
    font-family: sans-serif;
    font-weight: 600;
	margin-top: 15px;
    width: 230px;
}


.modal-content-create-user {
     display: flex;
     justify-content: center;
     height: calc(100vh - 100px); /* Full height minus 100px from the top */
}

input:disabled {
    background-color: #7d7c7c;
}

checkbox-assign{
	transform: scale(1.5);
}

.page-instructions{
 color: #eee;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 0;
    margin-top: -30px;
	text-align: center;
}

  
.title {
    color: #eee;
    font-family: sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-top: 10px;
	display: flex;
    align-items: center;
  }
  
  .title-devices {
    color: #eee;
    font-family: sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-top: 15px;
	margin-bottom: 1px;
  }

 .subtitle {
    color: #eee;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
  }
  
 .subtitle-center{
    color: #eee;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
	text-align: center;
  }
  
.input {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 22px;
  outline: 0;
  padding: 20px;
  width: 160px;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 0px;
  margin-left: 110px;
  float: right;
  text-align: center;
}

.input-firmware {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 22px;
  outline: 0;
  padding: 20px;
  width: 265px;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 0px;
  margin-left: 110px;
  float: right;
  text-align: center;
}

.input-network {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 22px;
  outline: 0;
  padding: 20px;
  width: 220px;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 0px;
  margin-left: 200px;
  float: right;
  text-align: center;
}

.io-Labels {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 22px;
  outline: 0;
  padding: 20px;
  width: 157px;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 0px;
  margin-left: 0px;
  float: right;
  text-align: center;
}

.IO-name{
	margin-right: 4px;
	padding-left: 10px;
}

.emergency-labels {
  background-color: #707794;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 22px;
  outline: 0;
  padding: 20px;
  width: 150px;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 15px;
  margin-bottom: 15px;
  float: left;
  text-align: center;
}

.dropdown {
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 8px;
  margin-bottom: 0px;
  margin-left: 30px;
  padding-left: 10px;
}
.dropdown-type {
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 8px;
  margin-bottom: 0px;
  margin-left: 20px;
  padding-left: 10px;
  width: 120px;
}

.ssid-dropdown {
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-left: 30px;
  padding-left: 10px;
}

.dropdownInputs {
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 8px;
  margin-bottom: 0px;
  margin-left: 24px;
  padding-left: 10px;
  width: 81px;
}

.dropdownAssignTypes {
  background-color: #707794;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 10px;
  width: 100px;
}

.dropdownIO {
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 8px;
  margin-bottom: 0px;
  margin-left: 30px;
  padding-left: 10px;
  width: 90px;
}

.smallInput {
  width: 35px;
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 8px;
  margin-bottom: 0px;
  margin-left: 38px;
  margin-right: 30px;
  padding-left: 12px;
  width: 53px;
}	

.IO-checkbox{
	 margin-left: 23px;
	 margin-right: 38px;
	 transform: scale(1.5);
}

.wifi-checkbox{
	 margin-top: 15px;
	 margin-bottom: 15px;
	 margin-right: 5px;
	 transform: scale(1.5);
}

.field-label{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.emergency-input {
  background-color: #3C3F58;
  border-radius: 12px;
  border: 1px;
  color: #eee;
  font-size: 18px;
  height: 36px;
  padding-left: 10px;
  width: 60px;
  height:40px;
}	


	
.content {
		width: 500px;
}
	
.contentSystem {
		width: 600px;
		max-height: 723px;
        overflow-y: auto;;
}
.contentEmergency {
		width: 600px;
		max-height: 723px;
}
	
.contentConfigPage {
		width: 690px;
		height: 345px;
		overflow-y: Auto;
		padding-left: 10px;
		padding-right:10px;
	}
	
.contentSchedules {
		width: 610px;
		max-height: 834px;
        /* overflow-y: auto; */
	}
	
.contentHolidays{
		width: 610px;
		max-height: 834px;
	}
	
.contentButtons {
		width: 600px;
		max-height: 834px;
	}
	
.contentRing {
		width: 600px;
		max-height: 834px;
}

.contentIO {
		width: 600px;
		max-height: 834px;
}

.contentNetwork {
		width: 600px;
		max-height: 834px;
}
	
.button-grid {
	display: flex;
    flex-wrap: wrap;
    justify-content: center;
   
}

.trigger-button {
    background-color: #303245; /* replace with your color */
    border: none;
    color: white;
    padding: 15px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 10px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1 0 300px; /* where 200px is the width of the button */
	width: 300px;
	font-size: 25px;
	border-radius: 12px;
	height: 135px;
}

.emergency-button {
    background-color: #303245; /* replace with your color */
    border: none;
    color: white;
    padding: 15px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 10px 10px;
    transition: background-color 0.3s ease;
    flex: 1 0 300px; /* where 200px is the width of the button */
	width: 190px;
	font-size: 25px;
	border-radius: 12px;
	height: 135px;
	cursor: pointer;
}

.emergency-button:hover {
    background-color: #707794; /* replace with your hover color */
}

.trigger-button:hover {
    background-color: #707794; /* replace with your hover color */
}

.emergency-button:active {
    background-color: #5F8575;
}

.trigger-button:active, .trigger-button:focus {
    background-color: #707794;
}

.trigger-button:focus {
    outline: none;
}

.emergency-button:focus {
    outline: none;
}

   
.submit {
	background-color: #08d;
	border-radius: 12px;
	border: 0;
	box-sizing: border-box;
	color: #eee;
	cursor: pointer;
	font-size: 18px;
	height: 50px;
/* 	margin-top: 38px;
	outline: 0; */
	text-align: center;
	width: 100%;
}

.submit:hover{ 
	background-color: #346ec7;
}

#IO-panel-container {
    display: flex;
    justify-content: center;
}

#panel-container {
    display: flex;
    justify-content: center;
}

  
#main-panel {
    width: 750px;
    height: 998px;
    background-color: #3C3F58; /* main panel color */
    margin-right: 10px;
 }

#main-panel {
    width: 750px;
    height: 998px;
    background-color: #3C3F58; /* main panel color */
    margin-right: 10px;
 }


 
 
.main-heading {
	text-align: center;
	background-color: #707794;
	font-size: 70px;
	font-weight: bold;
	height: 102px;
	margin-bottom: 0px;
	padding-bottom: 0px;
	border-top-width: 5px;
	align-items: center;
	display: flex;
	justify-content: center;

  }
  
  #current-time {
    text-align: center;
    padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
    background-color: #3BBA9C;
    color: white;
    max-width: 100px;
    margin-top: 10px;
  }
  
  #current-date {
    text-align: center;
    padding-top: 10px;
	padding-left: 10px;
	padding-right: 10px;
    background-color: #3BBA9C;
    color: white;
    max-width: 100px;
    margin-top: 10px;
  }
  
  #main-panel-content {
    display: flex;
    justify-content: center;
    padding-top: 5px; 
    font-size: 18px;
    color: white;
  }
  

  #side-panels {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
	cursor: pointer;
  }
  .side-panel {
    width: 225px;
    height: 102px;
    background-color: #707794; 
    margin-bottom: 10px;
    transition: background-color 0.3s ease; 
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 18px;
    color: white;
    padding-left: 20px;
  }
  .side-panel img {
    display: block;
    margin-right: 30px;
  }
  .side-panel:hover {
    background-color: #43455C; 
  }
  #bottom-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 915px;
    height: 70;
    background-color: #3BBA9C;
  }
  #next-event {
    background-color: #3C3F58;
    margin: 20px;
    padding: 10px;
    color: white;
    font-size: 18px;
  }
  
  .field-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

  .field-container-system {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
	margin-top: 12px;
}

  .field-container-system-update {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
	margin-top: 12px;
}

  .field-container-input-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
	padding-right: 10px;
}

.field-container label {
    flex: 1;
    text-align: left;
}

.field-container .input {
    flex: 1;
    text-align: left;
}

.field-container-system .input {
    flex: 1;
    text-align: left;
	margin-left: 200px;
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.success-message {
    color: white;
    text-align: center;
    margin-top: 10px;
}

#save-notification {
    margin-top: 10px;
    color: green;
    text-align: center;
    font-weight: bold;
    display: none;
}

.holiday-container {
	opacity: 1; /* Fully visible */
	transition: opacity 2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #303245;
    border-radius: 12px;
    color: #eee;
    padding: 20px;
	pointer-events: none;
}


.holiday-container:active {
	background-color: #5F8575;
}

.date-container-right {
    display: flex;
    flex-direction: column;
	text-align: center;
	padding-right: 40px;
}
.date-container-left {
    display: flex;
    flex-direction: column;
	text-align: center;
	padding-left: 40px;
}

.submit-container{
	margin-top: 0px;
}


.invalid {
    border: 2px solid red !important;
}

.dropdownHolidays.invalid {
    border: 2px solid red;
}


.dropdownHolidays {
  background-color: #303245;
  border-radius: 12px;
  border: 1px;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 36px;
  margin-top: 8px;
  margin-bottom: 0px;
  padding-left: 10px;
  background-color: #707794;
}

.holiday-dropdown-label {
    display: block;
    text-align: center;
	padding-top: 10px;
	margin-top: 10px;
	
}

.modal-content-holiday {
	overflow-y: auto; 
    background-color: #2E3047;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 315px;
	height: 30%;
	text-align: center;
	flex-direction: column;
	display: flex;
	justify-content: space-between;
}


.holiday.name {
    font-size: 20px;
}

.holiday.buttons {
    display: flex;
    gap: 10px;
    pointer-events: auto; 
}

#tooltip {
    position: absolute;
    visibility: hidden;
    background-color: #333;  
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}


.schedule-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #303245;
    border-radius: 12px;
    color: #eee;
    padding: 20px;
	cursor: pointer;
	opacity: 1; 
	transition: opacity 0.9s, background-color 1.5s;
}

.schedule-container .schedule-buttons > button {
    pointer-events: auto; 
}

.calander-schedule-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #303245;
    border-radius: 12px;
    color: #eee;
    padding: 20px;
	cursor: pointer;
	opacity: 1; 
	transition: opacity 0.9s, background-color 1.5s;
}

.discovered-devices-container {
	overflow-y: auto;
    /* display: flex; */
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	background-color: #303245;
	border-radius: 12px;
	color: #eee;
	padding: 20px;
	opacity: 1;
	transition: opacity 1.2s, background-color 2s;
	height: 255px;
}

.discovered-devices-container-individual {
    display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	background-color: #707794;
	border-radius: 12px;
	color: #eee;
	padding: 20px;
	opacity: 1;
	transition: opacity 1.2s, background-color 2s;
}

.schedule-container.active {
    background-color: #5F8575;
}

.schedule-container.blue.active {
    background-color: #5a89e0;
    transition: background-color 0.3s, box-shadow 0.3s; 
}

.calendar-schedule-container.active {
    background-color: #6197fa;
}

@media (hover: hover){
	.schedule-container:hover {
		background-color: #707794;
	}
	.schedule-container.active:hover {
		background-color: #4a685c;
	}
}


.schedule-name {
    font-size: 20px;
}

.schedule-num-events {
    font-size: 15px;
	font-style: italic;
}

.schedule-buttons {
    display: flex;
    gap: 10px;
}



.schedule-button:hover {
    background-color: #346ec7;
}


.button {
    background-color: #08d;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	cursor: pointer;
}

.button:hover {
    background-color: #346ec7;
}

.system-button {
    background-color: #707794; 
	font-size: 16px;
}

.system-button-update {
    background-color: #707794; 
	font-size: 16px;
	margin-left: 20px;
}

.adopt-button {
    background-color: #3C3F58; 
	font-size: 16px;
	pointer-events: auto; 
	margin-left: 15px;
}

.remove-button {
    background-color: #3C3F58; 
	font-size: 16px;
	pointer-events: auto; 
	margin-left: 15px;
}


.edit-button {
    background-color: #3C3F58; 
	font-size: 16px;
	pointer-events: auto; 
}

.save-button {
    background-color: #3C3F58; 
	font-size: 16px;
	width: 95px;
	margin-top: 10px;
}

.cancel-button {
    background-color: #3C3F58;
	font-size: 16px;
	width: 95px;
	margin-top: 15px;
}

.confirm-button {
    background-color: #3C3F58;
	font-size: 16px;
	width: 95px;
	margin-top: 15px;
}

.calendar-save-button {
    background-color: #3C3F58; 
	font-size: 16px;
	width: 130;
	margin-left: 10px;
	margin-right: 10px;
}

	

.delete-button {
    background-color: #3C3F58; 
	font-size: 16px;
	pointer-events: auto; 
}

.test-button {
    background-color: #3C3F58; 
	font-size: 16px;
	pointer-events: auto; 
	width: 125px;
	margin-top:15px;
	margin-bottom:15px;
	height: 40px;
}


.clear-button {
    background-color: #3C3F58; 
	font-size: 16px;
}

.download-logs-button {
    background-color: #3C3F58; 
	font-size: 16px;
}

.active-button {
    background-color: #3C3F58;
	font-size: 16px;
}

.assign-button {
    background-color: #3C3F58; 
	font-size: 16px;
}

.login-button {
    background-color: #3C3F58;
	font-size: 16px;
	width: 95px;
	margin-top: 10px;
}

.back-button {
    background-color: #3C3F58;
	font-size: 16px;
	width: 95px;
	margin-top: 10px;
	margin-left: 55px;
}

.no-schedules {
    color: #eee;
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
}

#activeScheduleText {
    display: none;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
	text-align: center;
}


.modal-content {
    background-color: #3BBA9C;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 25%;
	text-align: center;
	border-radius: 12px;
}




.modal-content-assign {
    background-color: #2E3047;
	border-radius: 12px;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
	text-align: center;
	font-size: 20px;
}

.assign-schedule-modal-div {
	padding-top: 10px;
	padding-bottom: 25px;
	text-align: left;
	margin-left: 95;
}

.modal-content-schedule {
	overflow-y: auto;  
    background-color: #2E3047;
    margin: 10% auto;
    padding-right: 20px;
	padding-left: 20px;
	padding-bottom: 20px;
	padding-top: 55px;
    border: 1px solid #888;
    width: 650px;
	height: 75%;
	text-align: center;
	flex-direction: column;
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
}
.schedule-list{
	overflow-y: auto;
	width: 590px;
	height: 90%
}

.network-list{
	overflow-y: auto;
	width: 590px;
}

.holiday-list{
	overflow-y: auto;
	width: 590px;
	height: 90%
}

.holiday-add-button{
	background-color: #707794;
    border-style: solid;
    padding-left: 6px;
	padding-right: 6px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}

.calendar-button {
	background-color: #707794;
    border-style: solid;
    padding-left: 8px;
	padding-right: 8px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}

.calendar-button:hover {
	background-color: #5f8575;
}


.download-button {
	background-color: #707794;
    border-style: solid;
    padding-left: 8px;
	padding-right: 8px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}

.download-button:hover {
	background-color: #5f8575;
}


.download-file-button {
	background-color: #707794;
	color: white;
    border-style: solid;
    padding-left: 8px;
	padding-right: 8px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}

.download-file-button:hover {
	background-color: #5f8575;
}

.upload-button {
	background-color: #707794;
	color: white;
    border-style: solid;
    padding-left: 8px;
	padding-right: 8px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}

.upload-button:hover {
	background-color: #5f8575;
}

.browse-button {
	background-color: #707794;
	color: white;
    border-style: solid;
    padding-left: 8px;
	padding-right: 8px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}

.browse-button:hover {
	background-color: #5f8575;
}


element {
	padding-left: 2px;
	padding-right: -10px;
	margin-right: -2px;
}

.schedule-add-button {
	background-color: #707794;
    border-style: solid;
    padding-left: 6px;
	padding-right: 6px;
	padding-top: 6px;
	padding-bottom: 5px;
    border-radius: 9px;
	margin-left: 10px;
	margin-bottom:10px;
	cursor: pointer;
}


.schedule-add-button:hover {
	background-color: #5f8575;
}


.holiday-add-button:hover{
	background-color: #5F8575;
	padding-left: 6px;
	padding-right: 6px;
	padding-top: 6px;
	padding-bottom: 5px;
	}




.button-group {
    margin-top: 15px;
}


.input-area {
    margin-top: 0px;
}

.button-group {
    margin-top: 0px;
}

.styled-input {
  background-color: #43455C;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 40px; 
  outline: 0;
  padding: 10px;
  width: 248px;
  margin-top: 5px;
  margin-bottom: 2px;
  margin-right: 2px;
  margin-left: 2px;
  text-align: center;
}

.styled-input-schedule-name {
  background-color: #43455C;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 40px; 
  outline: 0;
  padding: 10px; 
  width: 260px; 
  margin-top: 5px;
  margin-bottom: 2px;
  margin-right: 50px;
  text-align: center;
  margin-left: 50px;
}

.styled-input-selection {
  background-color: #43455C;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 40px; 
  outline: 0;
  padding: 10px; 
  width: 70px; 
  margin-top: 0x;
  margin-bottom: 0px;
  margin-right: 0px;
  margin-left: 0px;
  text-align: center;
}

.styled-input-password-change{
  background-color: #43455C;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 40px; /* increased height */
  outline: 0;
  padding: 10px; /* decreased padding */
  width: 230px; /* added unit */
  margin-top: 5px;
  margin-bottom: 20px;
  margin-right: 2px;
  margin-left: 2px;
  text-align: center;
}

.event {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
	background-color: #707794;
}

.time, .duration {
    /*display: flex;*/
    align-items: start;
    gap: 10px;
    margin-top: 10px;
}

.days {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
	padding-top: 7px;
}

.event-delete-button {
	border: none;
    padding: 10px;
    color: #fff;
    background-color: #3C3F58;
    cursor: pointer;
    border-radius: 12px;
	font-size: 18px;
	margin-left: 40px;
}

.event-add-button {
	border: none;
    padding: 10px;
    color: #fff;
    background-color: #3C3F58;
    cursor: pointer;
    border-radius: 12px;
	font-size: 18px;
}

.event-delete-button:hover {
	background-color: #346ec7;
}

.input-container {
  background-color: #303245;
  border-radius: 5px;
  padding: 20px;
  width: 90%;
  height: 115px;
  margin-left: 10px;
  margin-right: 10px;
  text-align: center;
  display: flex;
  align-items: center;  /* This ensures vertical alignment of all items in the middle. */
  justify-content: space-between; /* This spreads out the child elements. */
  font-size: 16px;
}

.input-name {
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;  /* Prevents the text from wrapping */
  text-overflow: ellipsis; /* Adds "..." if the text overflows */
  width: 100%;        /* Takes full width available */
  display: inline-block;  /* Makes it obey width constraints */
}

.checkbox-container {
  margin: 10px 0;
  transform: scale(1.5);
  margin-left: 120px
}


.checkbox-container input[type=checkbox] {
  margin-right: 10px;
}

.input-buttons {
  justify-content: space-between;
  margin-top: 20px;
}

.input-button {
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.inputsContainer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 20px;
  margin-left: 0px;
}

#inputsContainer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-left: 0px;
}

.assign-button {
	width: 100%;
}
.active {
    background-color: #5F8575;
}

.green {
    background-color: green;
}

.message-modal {
	text-align: center;
}

.modal-header-schedule {
  position: absolute;
  top: 0;
  width: 660px;
  height: 55;
  margin-top: 31px;
  margin-bottom: 0px;
  padding-top: 5px;
  padding-bottom: 10px;
  background-color: #2E3047;
}

.schedule-add-container{
	 width: 97%;      /* Make it span the entire screen width */
     display: flex;    /* Use flexbox */
     align-items: center;  /* Vertically center the items */
     justify-content: flex-end;  /* Align items to the far right */
	 margin-right: 20px;
}

/* The Modal (background) */
.logs-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 95%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  overflow-y: auto;  /* Enable vertical scrollbar */
}

/* The Modal (background) */
.patch-notes-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  overflow-y: auto;  /* Enable vertical scrollbar */
}

/* The Modal (background) */
.calendar-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
 /* overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  overflow-y: scroll;  /* Enable vertical scrollbar */
  overflow-x: hidden;  /* Enable vertical scrollbar */
}

/* The Modal (background) */
.download-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
 /* overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  overflow-y: scroll;  /* Enable vertical scrollbar */
  overflow-x: hidden;  /* Enable vertical scrollbar */
}


.logs-modal-content {
  background-color: #2E3047;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  overflow-y: auto;
  height: 870px;
}

.calendar-modal-content {
  background-color: #2E3047;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  overflow-y: auto;
  height: 870px;
  overflow-y: scroll;  
  overflow-x: hidden;  
}

.upload-files-content {
    border-top: 1px solid #ddd; /* Optional, adds a line above the footer */
    padding-top: 10px; /* Space above the footer content */
    display: flex;
    justify-content: center; /* Center aligns the buttons horizontally */
    align-items: center; /* Center aligns the buttons vertically */
	margin-top: 5px;
}

.download-modal-content {
  background-color: #2E3047;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  overflow-y: auto;
  height: 550px;
  overflow-y: scroll;  
  overflow-x: hidden;  
}

.patch-notes-modal-content {
  background-color: #2E3047;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  overflow-y: auto;
  height: 870px;
}

.logs-close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.event-close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding-top: -15px;
  padding-right: -10px;
}



.logs-close:hover,
.logs-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* The Close Button */
.patch-notes-close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.patch-notes-close:hover,
.patch-notes-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.calendar-close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.download-close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.calendar-close:hover,
.calendar-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.download-close:hover,
.download-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.change-password-modal {
  display: none; 
  text-align: center;
  border-radius: 12px;
  position: fixed; 
  z-index: 1;
  left: 50%; 
  top: 33%; 
  width: 315px; 
  height: 425px; 
  transform: translate(-50%, -50%); 
  background-color: #3BBA9C; 
  margin-bottom: 10px
}

.change-password-modal-content {
	display: none; 
    background-color: #3BBA9C;
    padding: 20px;
    border: 1px solid #888;
    left: 50%; 
    top: 33%; 
    width: 300px; 
    height: 370px; 
	text-align: center;
	border-radius: 12px;
}

.firmware-update-modal {
  display: none; 
  text-align: center;
  border-radius: 12px;
  position: fixed; 
  z-index: 1; 
  left: 50%; 
  top: 25%;
  width: 280px; 
  height: 175px; 
  transform: translate(-50%, -50%); 
  background-color: #3BBA9C; 
  margin-bottom: 10px;
}

.reboot-modal {
  display: none; 
  text-align: center;
  border-radius: 12px;
  position: fixed; 
  z-index: 1; 
  left: 50%; 
  top: 25%; 
  width: 280px; 
  height: 135px; 
  transform: translate(-50%, -50%); 
  background-color: #3BBA9C; 
  margin-bottom: 10px;
}

.factory-reset-modal{
  display: none; 
  text-align: center;
  border-radius: 12px;
  position: fixed;
  z-index: 1; 
  left: 50%; 
  top: 25%; 
  width: 460px; 
  height: 140px; 
  transform: translate(-50%, -50%); 
  background-color: #3BBA9C; 
  margin-bottom: 10px;
}

.header-container {
    display: flex;               
    align-items: center;         
    justify-content: space-between; 
}

#messageModal {
    opacity: 0;
    transition: opacity 0.7s;   
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
	font-size: 20px;
	flex: 1;
	margin-top: 5px;
}

#messageModal.fade-in {
    opacity: 1;
}

.passwordMessageModal {
    opacity: 0;
    transition: opacity 0.7s;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fade-out {
    opacity: 0; 
	transition: opacity 0.5s ease-in-out;
}
.fade-in {
    opacity: 1; 
}

#messageModal.fade-out {
    opacity: 0;
	transition: opacity 1s;
}
@keyframes fadeOut {
  to {
   transition: opacity 1s;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95); 
  }
}

#activeScheduleText {
    text-align: center; 
    align-items: center; 
}

.wireless-signal{
	font-size: 20px;
	text-align: center;
	color: #3BBA9C;
}

.login-messages{
    opacity: 1;
    font-size: 15px;
    text-align: center;
	color: #eee;
    font-family: sans-serif;
    font-weight: 600;
	margin-top: 6px;
}

.groupOptions {
	padding-left: 110px;
}

.checkbox-container {
    display: flex;
    align-items: center;  /* this ensures vertical centering */
}

.checkbox-label {
    width: 150px; /* you can adjust this value according to your needs */
    text-align: left;
}

        /* Styles for Modal */
        .modal-progress-bar {
            display: none;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }
        .modal-content {
            background-color: #3BBA9C;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 300px;
        }
		
		.modal-content-firmware-updating {
            background-color: #3BBA9C;
			border-radius: 10px;
            margin: 15% auto;
            padding: 50px;
            border: 1px solid #888;
            width: 400px;
        }
        
        /* Styles for Progress Bar */
        .progress-bar {
            width: 100%;
            background-color: #e0e0e0;
        }
        .progress-bar-fill {
            height: 30px;
            width: 0%;
            background-color: #4CAF50;
            text-align: center;
            line-height: 30px;
            color: white;
        }
		
		
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);  /* 14 columns for two months side-by-side */
    border-collapse: collapse;
	 -webkit-touch-callout: none;  /* iOS Safari */
    -webkit-user-select: none;    /* Safari */
    -khtml-user-select: none;     /* Konqueror HTML */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* Internet Explorer/Edge */
    user-select: none;            /* Non-prefixed version, currently supported by Chrome, Opera, and Firefox */
	opacity: 1; /* Fully visible */
	transition: opacity 0.4s, background-color 1.2s;
}

.month {
    grid-column: span 14;  
	margin-bottom:1px;
	margin-top:15px;
	cursor: pointer;
}

.day {
    border: 1px solid black;
    padding: 5px;
    text-align: center;
	font-size:14px;
	background-color: #707794;
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.4s, background-color 0.4s;
	
}

.days-header {
    border: 1px solid black;
    padding: 5px;
    text-align: center;
	font-size:11px;
}
 
 
.schedule {
    display: inline-block;
    margin-right: 10px;
	margin-bottom: 10px;
    padding: 5px 10px;
    border: 3px solid transparent;
    cursor: pointer;
	width: 200px;
	Height: 35px;
	font-size: 15px;
	border-radius: 12px;
 }
 
 .schedule:hover {
	 background-color: #f0f0f0;
 }
 
 #schedules {
    display: flex;
    margin-bottom: 10px;
	display: flow-root;
	opacity: 1; 
	transition: opacity 0.4s, background-color 1.2s;

}

.days-header.weekend {
    background-color: #f0f0f0; 
    color: #000;
}

.weekend {
    background-color: #f5e2dc;
    color: #000;
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.4s, background-color 0.4s;
}

.day.empty {
    background-color: transparent;
	opacity: 1; 
	transition: opacity 0.4s, background-color 0.4s;
}


.year-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#prevYear, #nextYear {
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 20px;
}

#prevYear[disabled], #nextYear[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.h2-calendar{
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 20px;
	text-align: center;
}

.h3-network{
	margin-bottom: 5px;
	margin-top: 5px;
}

.h3-IO{
	margin-top: 25px;
	margin-bottom: 5px;
	font-size: 16px;
}

#calendarMessageModal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s linear, visibility 1.5s linear;
	text-align: center;
	height: 20px;
    line-height: 20px;
}

#downloadMessageModal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s linear, visibility 1.5s linear;
	text-align: center;
	height: 20px;
    line-height: 20px;
}

.emergency-types {
    justify-content: space-between;
	margin-top: 10px;
}

.emergency-type {
    width: 90%; 
    margin: 0 10px;
    text-align: center;
	background-color: #303245;
	height: 70px;
	width: 90%;
    cursor: pointer;
	border-radius: 12px;
	padding: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

.emergency-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.emergency-settings {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.emergency-image {
    display: block;
    width: 45px;
    height: 45px;
    margin: 10px auto 0;
	margin-bottom: 10px;
	float: right;
}

.emergency-image-manual {
    display: block;
    width: 45px;
    height: 45px;
    margin: 10px auto 0;
	margin-bottom: 10px;
}

.dropdown-label {
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
}

.emergnecy-dropdown-label {
    display: block;
    text-align: center;
    margin-bottom: 0px;
	margin-top: -10px;
}

.additional-checkbox-container {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 10px; 
	margin-left: 5px;
	white-space: nowrap;   
    text-overflow: ellipsis; 
    width: 100%;       
    display: inline-block;  
    font-size: 12px;
}

.original-checkbox-container{
    display: block;
    clear: both;
    width: 100%;
    margin-top: 10px;
	margin-left: -50px;
    white-space: nowrap;   
    text-overflow: ellipsis;
    width: 100%;    
    display: inline-block;  
    font-size: 12px;
}

.buttons-checkbox-container{
  margin: 10px 0;
  transform: scale(1.5);
  margin-left: 45px;
  margin-top: 14px;
}

.input-container-buttons {
  background-color: #303245;
  border-radius: 5px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 15px;
  padding-bottom: 20px;
  width: 90%;
  height: 115px;
  margin-left: 10px;
  margin-right: 10px;
  display: flex;
  align-items: center;  /* This ensures vertical alignment of all items in the middle. */
  justify-content: space-between; /* This spreads out the child elements. */
  font-size: 16px;
}