/* Base Styles */
:root {
    --primary-color: #148301;#3498db;
    --secondary-color: #2980b9;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --text-color: #444;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
}

.logo img {
    max-width: 150px;
    display: block;
    margin: 0 auto 20px;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.btn {
    /*width: 100%;*/
    padding: 12px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-color);
}

.captcha-group {
    margin-bottom: 20px;
}

.captcha {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#captchaText {
    font-size: 24px;
    letter-spacing: 3px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    user-select: none;
}

#refreshCaptcha {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
}

.help-links {
    margin-top: 20px;
    text-align: center;
}

.help-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.help-links a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
}

.welcome-message h2 {
    color: var(--primary-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-list {
    list-style: none;
}

.card-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafc;
    border-radius: var(--radius);
    transition: var(--transition);
}

.card-list li:hover {
    background: #f1f5ff;
    transform: translateY(-2px);
}

.card-list a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.card-list i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.status-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    grid-template-columns: 1fr;
}

.status-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.status-item:last-child {
    border-bottom: none;
}

.status-value {
    font-weight: 600;
}

.completed {
    color: var(--success-color);
}

.pending {
    color: orange;
}

.dashboard-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.menu-card {
    color: var(--primary-color);
    /*background: white;*/
    padding: 25px;
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
    /*text-align: center;*/
    /*transition: transform 0.3s;*/
    cursor: pointer;
}

/*.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}*/

.menu-card i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.menu-card h3 {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-menu {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.secondary-btn {
    background: #f0f0f0;
    color: var(--text-color);
}

.secondary-btn:hover {
    background: #e0e0e0;
}

/* Document Viewer */
.document-viewer {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.document-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

iframe {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
}

#captchaImage {
    height: 80px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

input.error {
    border-color: var(--error-color);
}