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

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

/* Light grey background when form view is active (not hidden) */
body.form-view-active {
    background-color: #f5f5f5;
}

/* Timer view specific body styling */
body.timer-active {
    /* Use dynamic viewport height for mobile Safari compatibility, with vh as fallback */
    height: 100dvh;
    height: 100vh; /* Fallback for browsers that don't support dvh */
    overflow: hidden; /* Prevent scrolling - content should fit within viewport */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center timer-view vertically so colored background shows around it */
    align-items: center; /* Center timer-view horizontally */
}

.hidden {
    display: none !important;
}

/* Timer View Styles */
#timer-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Take up 85% of viewport height for consistent sizing - use dvh for mobile Safari */
    max-height: 85dvh;
    max-height: 85vh; /* Fallback for browsers that don't support dvh */
    padding: 20px; /* Padding around content to show colored background */
    box-sizing: border-box;
    overflow: auto;
    margin: 0 auto; /* Center horizontally */
    position: relative;
    background-color: white; /* White background so content stands out on colored page background */
    max-width: 1200px; /* Limit width on very large screens */
    min-width: clamp(300px, 85vw, 800px); /* Responsive min-width that scales with viewport */
    width: fit-content; /* Shrink to fit content while respecting min/max constraints */
}

.circuit-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: clamp(14px, 2vh, 24px); /* Responsive: scales with viewport height */
    font-weight: bold;
    color: #333;
}

.short-code-display {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: clamp(14px, 2vh, 24px); /* Responsive: scales with viewport height */
    font-weight: bold;
    color: #333;
}

/* Sidebar Toggle Button */
.sidebar-toggle-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002; /* Above sidebar but accessible */
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle-button:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle-button.hidden {
    display: none !important;
}

/* Sidebar toggle button is always visible */
.sidebar-toggle-button {
    display: flex;
}

/* Info Toggle Button (top-right, always visible) */
.info-toggle-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002; /* Above sidebar but accessible */
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 50%; /* Circular button */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.info-toggle-button:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* App Info Sidebar (right-hand side) */
.app-info-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px; /* Narrow width similar to left sidebar */
    max-height: 100vh;
    background-color: #e9f9ff; /* Match timer-box background */
    border-left: 2px solid #ddd;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above timer content, below toggle button */
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%); /* Hidden by default (off-screen right) */
    transition: transform 0.3s ease;
    /* Override .hidden display:none for sidebar to allow transforms */
    display: block !important;
}

.app-info-sidebar:not(.hidden) {
    transform: translateX(0); /* Slide in when visible */
}

.app-info-sidebar.hidden {
    transform: translateX(100%);
}

.app-info-sidebar .sidebar-header {
    padding: 70px 20px 20px 20px; /* Extra top padding to clear toggle button (50px button + 20px top = 70px) */
    border-bottom: 2px solid #ddd;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-info-sidebar .sidebar-header h1 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.app-info-sidebar .sidebar-content {
    padding: 20px;
}

.app-info-sidebar h2 {
    color: #333;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.app-info-sidebar p {
    margin: 10px 0;
    line-height: 1.6;
}

.app-info-sidebar hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 20px 0;
}

.app-info-sidebar a {
    color: #005ea5;
    text-decoration: underline;
}

.app-info-sidebar a:hover {
    color: #003d82;
}

/* App Info Boxes (similar to sidebar-phase-group) */
.app-info-sidebar .app-info-box {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
}

.app-info-sidebar .app-info-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Reduce spacing between name and address lines for a more coherent block */
.app-info-sidebar .app-info-box .name-address p {
    margin-top: 0;
    margin-bottom: 2px;
}

.app-info-sidebar .app-info-box .name-address p:last-child {
    margin-bottom: 0;
}

/* Timer Definition Sidebar */
.timer-definition-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px; /* Narrow width similar to iPhone portrait */
    max-height: 100vh;
    background-color: #e9f9ff; /* Match timer-box background */
    border-right: 2px solid #ddd;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above timer content, below toggle button */
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%); /* Hidden by default (off-screen left) */
    transition: transform 0.3s ease;
    /* Override .hidden display:none for sidebar to allow transforms */
    display: block !important;
}

.timer-definition-sidebar:not(.hidden) {
    transform: translateX(0); /* Slide in when visible */
}

.timer-definition-sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 70px 20px 20px 20px; /* Extra top padding to clear toggle button (50px button + 20px top = 70px) */
    border-bottom: 2px solid #ddd;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-description-section {
    margin-bottom: 20px;
}

.sidebar-description-section label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.sidebar-description-section textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    resize: none;
}

.sidebar-description-section textarea:read-only {
    cursor: default;
}

.sidebar-section {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

/* Sidebar phase fields - narrow column layout */
.sidebar-phase-group {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
}

.sidebar-phase-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.sidebar-phase-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sidebar-phase-field {
    display: flex;
    flex-direction: column;
}

.sidebar-phase-field label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.sidebar-phase-field input,
.sidebar-phase-field textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    resize: none; /* Prevent textarea resizing */
}

.sidebar-phase-field input:read-only,
.sidebar-phase-field textarea:read-only {
    cursor: default;
    background-color: #f5f5f5;
}

/* Copy timer box */
.sidebar-copy-box {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

.sidebar-copy-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.edit-timer-button,
.create-timer-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-timer-button:hover,
.create-timer-button:hover {
    background-color: #45a049;
}

.list-timers-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.list-timers-button:hover {
    background-color: #0b7dda;
}

.message-display {
    font-size: clamp(24px, 5vh, 48px); /* Responsive: scales with viewport height */
    color: #555;
    margin: 10px 0;
    text-align: center;
    min-height: clamp(40px, 6vh, 60px); /* Responsive minimum height */
    flex-shrink: 0; /* Prevent shrinking when space is tight */
}

.timer-display {
    /* Responsive font size: scales based on viewport height (85vh = timer-view height) */
    /* Minimum 4rem (64px), preferred 34vh, maximum 24rem (384px) */
    font-size: clamp(4rem, 34vh, 24rem);
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    text-align: center;
    font-family: 'Verdana', monospace;
    flex-shrink: 0; /* Prevent shrinking when space is tight */
    line-height: 1; /* Tighter line height for large numbers */
}

.controls {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-shrink: 0; /* Prevent shrinking when space is tight */
}

.control-button {
    padding: clamp(10px, 1.5vh, 15px) clamp(20px, 3vh, 30px); /* Responsive padding */
    font-size: clamp(16px, 2.5vh, 24px); /* Responsive font size */
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-button:hover:not(:disabled) {
    background-color: #45a049;
}

.control-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.control-button.resume-button {
    background-color: #FF9800;
}

.control-button.resume-button:hover:not(:disabled) {
    background-color: #F57C00;
}

/* Form View Styles */
#form-view {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

.form-view-heading {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
}

.form-container {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-container-header {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

#form-view h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

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

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.phase-group {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    position: relative;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.phase-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.delete-phase-button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.delete-phase-button:hover {
    background-color: #da190b;
}

.phase-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Responsive: switch to single column on narrow screens */
@media (max-width: 600px) {
    .phase-fields {
        grid-template-columns: 1fr;
    }
    
    .short-url-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .short-url-display .open-timer-button {
        width: 100%;
    }
}

.phase-field {
    display: flex;
    flex-direction: column;
}

.phase-field label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.phase-field input,
.phase-field select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Color input container with picker button */
.color-input-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.color-input-container input[type="text"] {
    flex: 1;
}

.color-picker-input {
    display: none;
}

.color-picker-button {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 18px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

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

.color-picker-button:active {
    background-color: #d0d0d0;
}

.add-phase-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.add-phase-button:hover {
    background-color: #0b7dda;
}

.short-url-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.short-url-container label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.short-url-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

#short-url-input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-family: monospace;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#short-url-load {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.copy-button {
    padding: 10px 15px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #45a049;
}

.open-timer-button {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.open-timer-button:hover:not(:disabled) {
    background-color: #45a049;
}

.open-timer-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Open Timer Buttons Container */
.open-timer-buttons-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cluster Timer Controls */
.cluster-timer-controls {
    margin-top: 15px;
    opacity: 0.5;
    pointer-events: none;
}

.cluster-timer-controls.active {
    opacity: 1;
    pointer-events: auto;
}

.cluster-timer-label {
    display: inline-block;
    margin-right: 10px;
}

.cluster-timer-select {
    display: inline-block;
    margin-right: 10px;
    padding: 5px;
}

.cluster-timer-join-button {
    display: inline-block;
}

/* Short URL Load Container */
.short-url-load-container {
    margin-top: 10px;
}

/* Completion View Styles */
#completion-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Fill available space in body */
    flex: 1;
    min-height: 0;
    padding: 20px;
    box-sizing: border-box; /* Padding included in height calculation */
    overflow: auto; /* Allow scrolling only if content absolutely needs it */
    background-color: white; /* White background so content stands out on colored page background */
}

.completion-message {
    text-align: center;
}

.completion-message h2 {
    font-size: 48px;
    color: #333;
    margin-bottom: 40px;
}

/* List Short URLs Page Styles */
#list-view {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: white;
}

#list-view h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.search-container {
    margin-bottom: 30px;
}

.search-container #owner-id-container {
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.pagination-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-button:hover:not(:disabled) {
    background-color: #0b7dda;
}

.pagination-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.timer-box {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #e9f9ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-box-header {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.timer-box-description {
    margin-bottom: 20px;
}

.timer-box-description label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.timer-box-description-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.timer-box-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timer-box-description-container textarea {
    flex: 1;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.timer-box-description-container textarea.readonly {
    background-color: #f5f5f5;
    color: #666;
    cursor: default;
}

.timer-box-description-container textarea.editable {
    background-color: white;
}

.save-timer-button,
.delete-timer-button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
    height: fit-content;
}

.save-revert-buttons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.save-timer-button {
    background-color: #4CAF50;
    font-size: 16px;
    padding: 12px;
    flex: 1;
}

.save-timer-button:hover:not(:disabled) {
    background-color: #45a049;
}

.save-timer-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.revert-timer-button {
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    padding: 12px;
    flex: 1;
    cursor: pointer;
    transition: background-color 0.3s;
}

.revert-timer-button:hover:not(:disabled) {
    background-color: #F57C00;
}

.revert-timer-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.delete-timer-button:hover {
    background-color: #da190b;
}

.timer-box-circuits {
    margin: 15px 0;
    font-size: 16px;
    color: #333;
}

.timer-box-circuits-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.timer-box-circuits-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Container for Advanced edit and Open timer buttons */
.edit-open-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.timer-box .advanced-edit-button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.timer-box .advanced-edit-button:hover:not(:disabled) {
    background-color: #F57C00;
}

.timer-box .advanced-edit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.timer-box .open-timer-button {
    flex: 2;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

/* Owner ID Verification Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Above everything else */
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.modal-body {
    padding: 20px;
    flex: 1;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.6;
}

.modal-body label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.modal-body input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.modal-body input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
}

.modal-body input[type="text"].error {
    border-color: #f44336;
}

.modal-error {
    margin-top: 10px;
    padding: 10px;
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 14px;
}

.modal-error.hidden {
    display: none;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-button-primary {
    background-color: #4CAF50;
    color: white;
}

.modal-button-primary:hover {
    background-color: #45a049;
}

.modal-button-secondary {
    background-color: #757575;
    color: white;
}

.modal-button-secondary:hover {
    background-color: #616161;
}
