/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: #212529;
    background-color: #f9f9f9;
    line-height: 1.6;
    background-image: 
        linear-gradient(to right, rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    overflow-x: hidden;
}

/* Add subtle tech elements */
body::before {
    content: '';
    position: fixed;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, rgba(0, 153, 255, 0.02) 50%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, rgba(0, 153, 255, 0.02) 50%, transparent 70%);
    z-index: -1;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: white;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #000;
}

.logo span {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0066cc;
}

/* Hero Banner */
.hero {
    height: 25vh;
    padding: 60px 20px;
    text-align: center;
    color: white;
    background-color: #444;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Overlay to ensure text readability */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Content */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.dashboard-header {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.dashboard-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.dashboard-content {
    padding: 30px;
}

/* Balance Card */
.balance-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #28a745;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.balance-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4rem;
}

.balance-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
}

.balance-details {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.balance-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.balance-label {
    color: #666;
}

.balance-value {
    font-weight: 500;
}

/* Progress bar */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #28a745, #5cb85c);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Tabs */
.tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #0066cc;
}

.tab-btn.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form styling */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f9fafc;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
}

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.form-section p {
    margin-bottom: 20px;
    color: #666;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
    outline: none;
    background-color: white;
}

/* Radio and checkbox styling */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-item input, .checkbox-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item label, .checkbox-item label {
    cursor: pointer;
    margin-bottom: 0;
}

/* Button styling */
.btn-primary {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #0052a3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Info Boxes */
.info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.info-box.warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.info-box.success {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.info-box h4 {
    margin: 0 0 10px 0;
    color: #0066cc;
    font-size: 1.1rem;
}

.info-box.warning h4 {
    color: #856404;
}

.info-box.success h4 {
    color: #155724;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Requirements List */
.requirements-list {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.requirements-list h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.requirement-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requirement-icon.pending {
    background-color: #ffc107;
}

.requirement-icon.failed {
    background-color: #dc3545;
}

/* History section */
.history-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #6c757d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.history-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.history-details {
    margin-top: 15px;
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.history-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.history-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-label {
    color: #666;
}

.history-value {
    font-weight: 500;
}

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

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-declined {
    background-color: #f8d7da;
    color: #721c24;
}

/* Equipment lists */
.equipment-list {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.equipment-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.equipment-item:last-child {
    border-bottom: none;
}

.equipment-item:hover {
    background-color: #f5f5f5;
}

.equipment-checkbox {
    margin-right: 15px;
}

.equipment-details {
    flex-grow: 1;
}

.equipment-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.equipment-price {
    color: #0066cc;
    font-weight: 600;
}

/* Textarea with character count */
.textarea-container {
    position: relative;
    margin-bottom: 20px;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    padding-bottom: 35px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #f9f9f9;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-title span {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.footer p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #0099ff;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-section i {
    margin-right: 8px;
    color: #0099ff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 13px;
}

.footer-bottom a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #0099ff;
}

/* Toast messages */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        height: auto;
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .balance-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        padding: 10px 15px;
    }
    
    .tab-btn.active {
        border-bottom-color: transparent;
        border-left-color: #0066cc;
        background-color: #f0f7ff;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
    }
}