:root {
    --primary-red: #ed1c24;
    --primary-green: #009444;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
}

.container {
    width: 100%;
    height: 100%;
}

/* Login Styles */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--primary-red);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
}

h2 {
    margin-bottom: 20px;
    color: var(--primary-red);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary-red);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #c41219;
}

.login-footer {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-footer p {
    margin-bottom: 5px;
}

.login-footer a {
    color: var(--primary-red);
    text-decoration: none;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-error {
    background-color: #fdecea;
    color: var(--primary-red);
    border: 1px solid #fadbd8;
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-green);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 50px;
    width: auto;
}

.dashboard-header h1 {
    font-size: 20px;
    color: var(--primary-red);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-welcome {
    font-weight: 500;
    color: #555;
}

.btn-logout {
    padding: 8px 16px;
    background-color: white;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: var(--primary-red);
    color: white;
}

.dashboard-content {
    flex: 1;
    padding: 20px;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iframe-container {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-header h1 {
        font-size: 18px;
    }
}
