/* Base styles and variables for Client B */
:root {
    --primary-color: #28a745;  /* Green theme for Client B */
    --primary-dark: #1e7e34;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --light-gray: #e9ecef;
    --medium-gray: #ced4da;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Login page styles */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 180px;
    height: auto;
}

.header-logo {
    max-height: 40px;
    width: auto;
}

h1 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 24px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.primary-button:hover {
    background-color: var(--primary-dark);
}

.primary-button:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-button:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

.forgot-password {
    margin-top: 15px;
    font-size: 14px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Dashboard page styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-name {
    font-weight: 500;
}

.dashboard-content {
    flex: 1;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.quicksight-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: calc(100vh - 140px);
}

.dashboard-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.loader {
    border: 4px solid var(--light-gray);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.error-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 100px auto;
    display: none;
}

.error-container h3 {
    margin-bottom: 15px;
    color: #dc3545;
}

.error-container p {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
    
    .dashboard-header {
        padding: 10px 15px;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    .quicksight-container {
        min-height: calc(100vh - 120px);
    }
}

/* Error page styles */
.error-page {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.error-page p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.error-actions {
    margin-top: 20px;
}

.error-actions .primary-button {
    display: inline-block;
    text-decoration: none;
}
