/* Professional application styles */

:root {
    --pico-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pico-font-size: 14px;
    --pico-line-height: 1.5;
    color-scheme: light;
}

/* Reset base font size for more compact layout */
html {
    font-size: 14px;
}

body {
    font-size: 14px;
    line-height: 1.5;
}

/* Normalize input and button sizes */
input,
select,
textarea,
button {
    font-size: 14px !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

/* Ensure light theme for all input elements */
input,
select,
textarea {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

/* Button styles - more compact and professional */
button,
[type="button"],
[type="submit"],
[type="reset"],
[role="button"] {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    margin-bottom: 0.5rem !important;
}

/* Labels */
label {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 0.375rem !important;
    display: block;
}

label small {
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Body and container */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 1.5rem 0;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem;
}

article {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

/* Header styles - more compact */
article header {
    background: transparent;
    color: #1f2937;
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

article header h1 {
    color: #1f2937 !important;
    font-size: 1.75rem !important;
    margin-bottom: 0.375rem !important;
    font-weight: 600 !important;
}

article header p {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-bottom: 0 !important;
}

/* Navigation - more compact */
nav {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem !important;
}

nav ul {
    margin: 0 !important;
    padding: 0 !important;
}

nav ul li {
    font-size: 14px !important;
    padding: 0.25rem 0 !important;
    margin-right: 1rem !important;
}

nav ul li:last-child {
    margin-right: 0 !important;
}

nav ul li strong {
    font-size: 16px !important;
    font-weight: 600 !important;
}

nav ul li a {
    font-size: 14px !important;
    padding: 0.375rem 0.75rem !important;
    display: inline-block;
}

/* Time display - more compact */
.time-display {
    text-align: center;
    padding: 2rem 0;
}

.time-label {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
}

#currentTime {
    font-size: 2rem;
    font-weight: 400;
    color: #4a5568;
    margin: 0;
}

/* Table styles - more compact */
table {
    margin-top: 0.75rem;
    width: 100%;
    font-size: 14px !important;
}

table thead {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

table thead th {
    color: #1f2937 !important;
    background-color: #f8f9fa !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0.5rem 0.75rem !important;
}

table tbody {
    background-color: white !important;
}

table tbody td {
    color: #4a5568 !important;
    background-color: white !important;
    font-size: 14px !important;
    padding: 0.5rem 0.75rem !important;
}

/* Delete button - more compact */
.delete-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem !important;
    font-size: 13px !important;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 !important;
}

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

/* Button hover effects */
button {
    transition: all 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Login and registration page styles */
.register-hint {
    margin-top: 0.75rem;
    text-align: center;
}

.register-hint small {
    font-size: 13px !important;
}

.register-hint a {
    color: #2563eb;
    text-decoration: underline;
}

.register-hint a:hover {
    color: #1d4ed8;
}

/* Section styles - more compact */
section {
    margin-bottom: 1.25rem;
}

section h2 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    color: #374151 !important;
    font-weight: 600 !important;
}

section p {
    margin-bottom: 0.75rem !important;
    color: #6b7280 !important;
    font-size: 14px !important;
}

section p small {
    font-size: 13px !important;
}

/* Horizontal rule */
hr {
    margin: 1.5rem 0 !important;
    border-color: #e5e7eb !important;
}

/* Error messages - more compact */
#error {
    margin-bottom: 0.75rem;
}

#error p {
    color: #ef4444 !important;
    background-color: #fee2e2 !important;
    padding: 0.625rem !important;
    border-radius: 4px !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Form spacing adjustments */
form {
    margin: 0;
}

form label:last-of-type {
    margin-bottom: 0.5rem !important;
}

/* Small text consistent sizing */
small {
    font-size: 12px !important;
    line-height: 1.4 !important;
}
