* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
    padding: 0;
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 180px;
    height: auto;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background-color: transparent;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 2px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .nav-btn:after {
    content: ' ▼';
    font-size: 10px;
    vertical-align: middle;
}

.logout-option {
    background-color: #e53e3e;
    color: white;
    border-radius: 0 0 4px 4px;
}

.logout-option:hover {
    background-color: #c53030 !important;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h2, h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #f97316;
    margin-bottom: 30px;
}

h2 {
    font-size: 24px;
    color: #374151;
}

h3 {
    font-size: 18px;
    color: #4b5563;
}

.instruction-text {
    text-align: center;
    margin-bottom: 30px;
    color: #6b7280;
    font-size: 16px;
}

/* Form Container */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

input[type="text"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #f9fafb;
    font-family: Arial, sans-serif;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #f97316;
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 5px;
}

/* Form Info Banner */
.form-info-banner {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f97316;
}

.form-info-banner h3 {
    margin-bottom: 15px;
    color: #c2410c;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: #c2410c;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span:not(.info-label) {
    color: #1f2937;
    font-size: 16px;
}

/* Search Results */
#searchResults {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-result-item {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-result-item:hover {
    background-color: #fff7ed;
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.form-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-number {
    font-weight: 700;
    color: #f97316;
    font-size: 16px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.draft {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-badge.pending-approval {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}

.form-name {
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-details {
    color: #6b7280;
    font-size: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-date {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Repair Summary */
.repair-summary {
    background-color: #fff7ed;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #f97316;
}

.repair-summary h3 {
    margin-bottom: 15px;
    color: #c2410c;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item span:not(.summary-label) {
    color: #1f2937;
    font-size: 16px;
}

/* Approver List */
.approver-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.approver-number {
    background-color: #2563eb;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.approver-info {
    flex: 1;
}

.approver-department {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 3px;
}

.approver-email {
    color: #6b7280;
    font-size: 13px;
}

.approver-sections {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.section-badge {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.department-badge {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn {
    background-color: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.success-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.success-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-arrow {
    font-size: 20px;
}

.back-btn {
    background-color: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #4b5563;
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #10b981;
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    color: #166534;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
    }

    .card {
        padding: 20px;
    }

    .info-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .form-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-details {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    .card {
        padding: 15px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}
