body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 40px;
    color: #1a202c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Grid Layout for Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Card Styling (matching the screenshot) */
.card {
    background-color: #E2E8F0; /* Light gray-blue */
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.card:hover {
    background-color: #CBD5E1;
    transform: translateY(-2px);
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #000000;
}

.card-desc {
    font-size: 13px;
    color: #1a202c;
    line-height: 1.4;
    margin: 0;
}

/* Forms and Buttons */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="date"] {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 16px;
}

.btn {
    background-color: #E2E8F0;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #CBD5E1;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* Dashboard Slider */
.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none; /* Hidden until loaded */
    cursor: pointer;
    background-color: #1E232E;
    justify-content: center;
    align-items: center;
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Fullscreen styles */
.slider:fullscreen {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #1E232E;
}

.slider:-webkit-full-screen {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #1E232E;
}

.slider:fullscreen img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.slider:-webkit-full-screen img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-btn {
    background-color: #E2E8F0;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

.slider-btn.active {
    background-color: #3b82f6;
    color: white;
}

/* Loader */
.loader-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #4a5568;
    text-decoration: none;
}

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