/* General body styling for all pages */
body {
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Shared card styling for both pages */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

/* Header styling for dashboard */
header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #343a40;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 24px;
    margin: 0;
}

header a {
    color: white;
    text-decoration: none;
    background-color: #dc3545;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

header a:hover {
    background-color: #c82333;
}

/* Welcome Section (index.ejs) */
.welcome-container {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    text-align: center;
    margin: auto;
    animation: fadeIn 0.8s ease-in-out;
}

.welcome-container h1 {
    font-size: 2.5rem;
    color: #0d6efd; /* Bootstrap primary color */
    margin-bottom: 20px;
}

.welcome-container p {
    font-size: 1.2rem;
    color: #6c757d; /* Bootstrap secondary text color */
    margin-bottom: 30px;
}

/* Login card specific styles */
.login-card input.form-control {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-card input.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
    outline: none;
}

.login-card button.btn-primary {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card button.btn-primary:hover {
    background-color: #0b5ed7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dashboard container (dashboard.ejs) */
#dashboardContainer {
    margin-top: 70px;
    display: flex;
    flex-wrap: nowrap;
    height: calc(100vh - 70px);
}

/* Sidebar styling */
.sidebar {
    width: 25%;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-right: 1px solid #ddd;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.sidebar h4 {
    margin-bottom: 20px;
}

.sidebar select,
.sidebar button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
}

.sidebar button {
	background-color: #4444ff;
}

.sidebar button {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar button:hover {
    background-color: #ff44ff;
	
}

#downloadCSV {
    background-color: #6c757d;
    color: white;
}

.sidebar p {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Content area styling */
.content {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    border-left: 1px solid #ddd;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.content canvas {
    margin-bottom: 20px;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .welcome-container {
        padding: 30px 20px;
    }

    .login-card {
        padding: 15px;
    }

    .welcome-container h1 {
        font-size: 2rem;
    }

    .welcome-container p {
        font-size: 1rem;
    }

    #dashboardContainer {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .content {
        width: 100%;
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }
}
