@import url('animate.css');

:root {
    --primary-color: #0056A1;
    --primary-light: #0072d4;
    --secondary-color: #FBB03B;
    --bg-gradient: linear-gradient(135deg, #0056A1 0%, #002D54 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #2d3436;
    --text-muted: #636e72;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Login Page Styles */
.login-body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png'); /* Optional pattern */
    opacity: 0.1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.login-logo {
    width: 150px;
    margin-bottom: 1.5rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 86, 161, 0.4);
}

.form-floating > label {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 161, 0.1);
}

.messagebox {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.messageboxok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.messageboxerror {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Shell */
.wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--primary-color);
    color: #fff;
    transition: all 0.3s;
    z-index: 999;
}

#content-area {
    width: calc(100% - 260px);
    margin-left: 260px;
    min-height: 100vh;
    transition: all 0.3s;
}

.main-iframe {
    width: 100%;
    height: calc(100vh - 70px);
    border: none;
}
