/* ================================================
   BC Clock - Base Styles & Variables
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #2BBCC0;
    --primary-dark: #229a9d;
    --primary-light: #5fd4d7;
    --text-dark: #1D3557;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-dark: #1D3557;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
}

.btn-warning {
    background: var(--warning);
    color: white;
    border: none;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
}

.btn-secondary {
    background: var(--bg-dark);
    color: white;
    border: none;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

/* Form controls */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bg-alt);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
    }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #e0f7f8;
    color: #0e7490;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

    .table th {
        background: var(--bg-light);
        padding: 1rem;
        text-align: left;
        font-weight: 600;
    }

    .table td {
        padding: 1rem;
        border-bottom: 1px solid var(--bg-alt);
    }

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bg-success {
    background: var(--success) !important;
    color: white;
}

.bg-danger {
    background: var(--error) !important;
    color: white;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.ms-1 {
    margin-left: 0.25rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

/* Remove unwanted borders/outlines */
h1, h2, h3, h4, h5, h6 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

*:focus {
    outline: none !important;
}

.hero h1, .hero-content h1 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Fix for Blazor error UI */
#blazor-error-ui {
    display: none !important;
}

blazor-error-ui {
    display: none !important;
}