/* ===== BASE STYLES ===== */
body {
    background: #d4e4f7;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
.logo-title {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: #4a7ba7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.tool-description {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* ===== NAVIGATION ===== */
.back-link {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000, -1px 0 0 #000000, 1px 0 0 #000000, 0 -1px 0 #000000, 0 1px 0 #000000;
    border: 1px solid rgba(0, 0, 0, 0.9);
    border-radius: 0;
    padding: 4px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== BUTTONS ===== */
button {
    background: #f0f0f0 !important;
    border: 1px solid #999999 !important;
    color: #333 !important;
    padding: 8px 20px !important;
    border-radius: 2px !important;
    font-weight: normal !important;
    font-size: 15px !important;
    cursor: pointer !important;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15) !important;
    font-family: Tahoma, Geneva, Verdana, sans-serif !important;
}

button:hover {
    background: #e0e0e0 !important;
}

button:active {
    background: #d0d0d0 !important;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.btn {
    background: white;
    border: 1px solid #999999;
    color: #000000;
    padding: 8px 20px;
    border-radius: 2px;
    font-weight: normal;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}

.btn:hover {
    background: #f5f5f5;
}

.btn:active {
    background: #e0e0e0;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #f0f0f0;
    color: #333;
}

.btn-primary:hover {
    background: #e0e0e0;
}

.btn-primary:active {
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-secondary:active {
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== INPUT CONTROLS ===== */
input[type="number"] {
    width: 80px;
    padding: 4px 10px;
    border: 1px solid #999999;
    border-radius: 2px;
    text-align: center;
    color: #000000;
}

input[type="text"] {
    padding: 4px 10px;
    border: 1px solid #999999;
    border-radius: 2px;
    color: #000000;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #4a7ba7;
}

input[type="range"] {
    width: 150px;
}

select {
    padding: 4px 8px;
    border: 1px solid #999999;
    border-radius: 2px;
    text-align: center;
    font-size: 0.875rem;
    color: #000000;
}

/* ===== TABLES ===== */
.content-card {
    background: white;
    border: 2px solid #4a7ba7;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.table-header {
    background: #b3d4f2;
    color: #000000;
    border-bottom: 1px solid #4a7ba7;
    font-weight: normal;
}

.data-row:hover {
    background: rgba(74, 123, 167, 0.1);
}

/* ===== SECTION HEADERS ===== */
h2 {
    font-weight: normal;
}

/* ===== SPECIAL COMPONENTS ===== */
.copy-text {
    background: white;
    border: 1px solid #999999;
    border-radius: 6px;
    padding: 10px 36px 10px 10px;
    font-family: monospace;
    font-size: 0.875rem;
    color: #000000;
    cursor: pointer;
    position: relative;
    max-width: 450px;
}

.copy-text:hover {
    border-color: #4a7ba7;
    background: #eff6ff;
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: #000000;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.timer-display.timer-warning {
    color: #dc2626;
}

.timer-input {
    width: 80px;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #999999;
    background: white;
    color: #000000;
    font-weight: 400;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 1rem !important;
    }

    .content-card {
        padding: 1rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem 0.5rem !important;
    }
}
