body {
    font-family: 'Roboto', Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    color: #333;
    min-height: 100vh;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: #444;
}

.clock-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.clock {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    text-align: center;
}

.clock h2 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: #007BFF;
}

.clock .time {
    font-size: 7.5em;
    margin: 0;
    color: #333;
}

.clock .date {
    font-size: 1.2em;
    margin: 5px 0;
    color: #666;
}

.clock .timezone {
    font-size: 1em;
    margin: 5px 0;
    color: #999;
}

.meeting-planner {
    margin: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Roboto', Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #000;
    box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
}

td {
    background-color: #f9f9f9;
}

td.bold {
    font-weight: bold;
    background-color: #d0f0f7;
}

td.lightgreen {
    background-color: #d0f7d0;
}

td.yellowish {
    background-color: #fffacd;
}

td.redish {
    background-color: #ffcccb;
}

#settings-link {
    display: inline-block;
    text-decoration: none;
    color: #007BFF;
    font-size: 60px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 20px;
}

.location-input {
    margin-bottom: 10px;
    width: 100%;
    margin-left: 0; /* Align to the left */
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-input .form-control {
    margin-right: 10px;
}

.drag-handle {
    cursor: grab;
    margin-right: 10px;
    font-size: 20px;
}

.drag-handle:active {
    cursor: grabbing;
}

.location-name {
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    height: 36px;
    flex: 1;
    min-width: 0;
}

.location-timezone {
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
}

.location-timezone:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.time {
    font-size: 2em;
    margin: 0;
}

.date {
    font-size: 1em;
    margin: 0;
}

.add-button {
    background-color: #ccc;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    height: 40px; /* Ensure same height */
}

.add-button:hover {
    background-color: #bbb;
}

.remove-button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    color: #ff4d4d;
    height: 36px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-button:hover {
    background-color: #e0e0e0;
}

.pretty-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #007BFF;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.pretty-link:hover {
    text-decoration: underline;
}

.dropdown {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    height: 40px; /* Ensure same height */
}

.form-group {
    margin-bottom: 20px;
}



.location-input.dragging {
    opacity: 0.5;
    background-color: #e0e0e0;
}

.location-input:nth-child(odd) {
    background-color: #f9f9f9;
}

.location-input:nth-child(even) {
    background-color: #e9e9e9;
}

.header-blue {
    color: #007BFF;
}

.bottom-link {
    margin-top: 20px;
    text-align: center;
}

.suggestion-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    position: absolute;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 2px;
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-main {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.suggestion-region {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.timezone-container {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-right: 10px;
    flex: 1;
    min-width: 0;
}

.utc-quick-select {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.utc-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.utc-button:hover {
    background-color: #0056b3;
}

.utc-button:active {
    background-color: #004085;
}

.timezone-validation {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

.timezone-validation.valid {
    color: #28a745;
}

.timezone-validation.invalid {
    color: #dc3545;
}

.location-timezone.valid {
    border-color: #28a745;
}

.location-timezone.invalid {
    border-color: #dc3545;
}

.location-timezone.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.location-timezone.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.timezone-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Modern Settings Page Styles */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.settings-header {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.settings-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #495057;
}

.card-description {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.card-body {
    padding: 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: #495057;
    margin: 0;
    font-size: 1rem;
}

.setting-select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #495057;
    transition: border-color 0.2s ease;
    min-width: 160px;
}

.setting-select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: #007BFF;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.preview-btn {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Timezone Help Section */
.timezone-help {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #e1bee7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.help-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.help-text {
    font-size: 0.9rem;
    color: #4a148c;
    line-height: 1.4;
    text-align: left;
}

/* Locations List */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Enhanced Location Input */
.location-input {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.location-input:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.location-input.dragging {
    opacity: 0.7;
    transform: rotate(2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.drag-handle {
    cursor: grab;
    font-size: 1.2rem;
    color: #9e9e9e;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #666;
    background-color: #f5f5f5;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Enhanced Input Fields */
.location-name, .location-timezone {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.location-name:focus, .location-timezone:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.location-name {
    flex: 1;
    min-width: 0;
}

.location-timezone {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Remove Button */
.remove-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.remove-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.remove-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Add Location Button */
.add-location-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.add-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Footer */
.settings-footer {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.back-icon {
    font-size: 1.2rem;
}


