:root {
    --primary-color: #FF5722;
    --secondary-color: #FFC107;
    --accent-color: #2196F3;
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white-bg: #FFFFFF;
    --card-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Login Gate Styles */
#login-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF5E6 0%, #E3F2FD 100%);
}

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

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-card p {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.login-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #E64A19;
}

.error-message {
    color: #D32F2F;
    margin-top: 15px;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Dashboard Styles */
.dashboard-header {
    background-color: var(--white-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logout-btn {
    background-color: #F44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.data-table {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.refresh-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background-color: rgba(255,255,255,0.3);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #555;
}

tr:hover {
    background-color: #f5f5f5;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.new {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status.processing {
    background-color: #FFF8E1;
    color: #F57F17;
}

.status.completed {
    background-color: #E3F2FD;
    color: #1565C0;
}