/**
 * ComplyEyes - Universal Styles
 * Contains global styles, variables, and resets used across all pages
 */
/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #1f3860;
    --secondary-color: #e2c8a0;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
}
/* Global utility classes */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--muted-text); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--light-bg); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-info { background-color: var(--info-color); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.rounded { border-radius: 0.25rem; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); }
/* Global status badge styles */
.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}
.status.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}
.status.expired {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}
.status.applied, .status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}
/* Basic responsive container */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}
.page-wrapper {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f0f2f5;
}
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://picsum.photos/id/30/1920/1080');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}
/* Container styles */
.container {
    width: 100%;
    max-width: 1280px;
    z-index: 1;
    position: relative;
}
.login-container {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    height: 90vh;
    max-height: 800px;
}
/* Left side styles */
.left-side {
    width: 55%;
    background: linear-gradient(135deg, #152942 0%, #1f3860 100%);
    color: white;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.brand-section {
    margin-bottom: 20px;
}
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}
.logo {
    height: 40px;
    margin-bottom: 10px;
}
.tagline {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
}
.illustration {
    text-align: center;
    margin-bottom: 30px;
}
.illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.left-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    flex: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
    transition: all 0.3s ease;
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}
.feature-item i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #e2c8a0;
}
.feature-item span {
    font-size: 12px;
    font-weight: 500;
}
.welcome-text {
    margin-top: auto;
    text-align: left;
}
.welcome-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.highlight {
    color: #e2c8a0;
}
.terms {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 10px;
    max-width: 400px;
}
.copyright {
    font-size: 12px;
    opacity: 0.5;
}
/* Right side styles */
.right-side {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: white;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
}
.date-display, .weather {
    display: flex;
    align-items: center;
}
.date-display i, .weather i {
    margin-right: 8px;
    color: #1f3860;
}
.login-form-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}
.form-header {
    margin-bottom: 30px;
    text-align: left;
}
.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #152942;
}
.login-text {
    color: #666;
    font-size: 14px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}
.input-with-icon {
    position: relative;
}
.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}
.input-with-icon input:focus {
    border-color: #1f3860;
    box-shadow: 0 0 0 2px rgba(31, 56, 96, 0.1);
    outline: none;
}
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.checkbox-group {
    display: flex;
    align-items: center;
}
.checkbox-group input {
    margin-right: 8px;
}
.checkbox-group label {
    font-size: 13px;
    color: #666;
}
.forgot-password {
    font-size: 13px;
    color: #1f3860;
    text-decoration: none;
    transition: all 0.3s;
}
.forgot-password:hover {
    color: #e2c8a0;
    text-decoration: underline;
}
.form-action {
    text-align: center;
}
.sign-in-btn {
    background: linear-gradient(135deg, #1f3860 0%, #152942 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sign-in-btn:hover {
    background: linear-gradient(135deg, #152942 0%, #0d1a2c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 56, 96, 0.3);
}
.sign-in-btn i {
    margin-left: 10px;
    font-size: 14px;
}
.factory-status {
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
}
.status-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #777;
}
.status-item .dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 8px;
}
.status-item.active .dot {
    background: #4caf50;
}
.footer-text {
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: #777;
}
.footer-text a {
    color: #1f3860;
    text-decoration: none;
}
.footer-text a:hover {    text-decoration: underline;
    color: #e2c8a0;
}
/* Responsive Styles */
@media (max-width: 1024px) {
    .login-container {
        height: auto;
        max-height: none;
        flex-direction: column;
    }
    .left-side, .right-side {
        width: 100%;
        padding: 30px;
    }
    .left-side {
        padding-bottom: 50px;
    }
    .welcome-text h1 {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .left-features {
        flex-direction: column;
    }
    .feature-item {
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    .forgot-password {
        margin-top: 15px;
    }
    .factory-status {
        flex-direction: column;
    }
    .status-item:not(:last-child) {
        margin-bottom: 10px;
    }
}
/* Dashboard styles */
/* Dashboard layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
/* Sidebar styles */
.sidebar {
    width: 250px;
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 10;
}
.sidebar-brand {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.sidebar-brand img {
    height: 40px;
    margin-bottom: 10px;
}
.sidebar-menu {
    padding: 20px 0;
}
.sidebar-menu h3 {
    padding: 0 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}
.sidebar-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    position: relative;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}
.sidebar-menu a i {
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}
.sidebar-menu .badge {
    position: absolute;
    right: 20px;
    background: var(--danger-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}
/* Dropdown menu styles */
.sidebar-menu .dropdown-toggle {
    position: relative;
    cursor: pointer;
}
.sidebar-menu .dropdown-icon {
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}
.sidebar-menu .dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}
.sidebar-menu .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
}
.sidebar-menu .dropdown.active .dropdown-menu {
    max-height: 250px;
}
.sidebar-menu .dropdown-menu a {
    padding-left: 50px;
    font-size: 13px;
}
.sidebar-menu .dropdown-menu i {
    font-size: 12px;
}
/* Main content styles */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.user-info {
    display: flex;
    align-items: center;
}
.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.search-box {
    position: relative;
}
.search-box input {
    padding: 8px 15px 8px 35px;
    width: 250px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-text);
}
.date-display {
    color: var(--muted-text);
    font-size: 14px;
}
/* Dashboard sections */
.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}
.section-action {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.section-action i {
    margin-left: 5px;
}
/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-text);
}
.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table .status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
/* Status colors */
.status.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}
.status.expired {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}
.status.applied {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}
.status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}
/* PDF download link */
.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}
.download-link i {
    margin-right: 5px;
}
.download-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
/* Footer */
.footer {
    margin-top: 20px;
    padding: 20px 0;
    text-align: center;
    color: var(--muted-text);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}
/* Responsive styles */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 20px 0;
    }
    .sidebar-brand, .sidebar-menu h3, .sidebar-menu a span, .user-name {
        display: none;
    }
    .sidebar-menu a {
        justify-content: center;
        padding: 15px 0;
    }
    .sidebar-menu a i {
        margin: 0;
        font-size: 18px;
    }
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}
@media (max-width: 576px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box {
        margin: 15px 0;
    }
}
.dashboard-wrapper .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.dashboard-wrapper .user-info {
    display: flex;
    align-items: center;
}
.dashboard-wrapper .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.dashboard-wrapper .date-display {
    color: var(--muted-text);
    font-size: 14px;
}