:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --secondary: #388e3c;
    --danger: #d32f2f;
    --warning: #f57c00;
    --info: #0288d1;
    --light: #f5f5f5;
    --dark: #333;
    --gray: #757575;
    --border: #e0e0e0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark);
}

.hidden {
    display: none !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 90%;
}

/* Auth Styles */
.auth-container {
    text-align: center;
}

.auth-header .logo {
    height: 50px;
    margin-bottom: 1rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-icon {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main";
    grid-template-rows: 60px 1fr;
    grid-template-columns: 250px 1fr;
    height: 100vh;
}

.header {
    grid-area: header;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-name {
    font-weight: 600;
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 120px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark);
}

.dropdown-content a:hover {
    background: var(--light);
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-links {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--light);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    grid-area: main;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Forms */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--light);
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Tabs */
.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-header {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-header.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending { background: #fff3e0; color: var(--warning); }
.status-approved { background: #e8f5e8; color: var(--secondary); }
.status-rejected { background: #ffebee; color: var(--danger); }
.status-draft { background: #f5f5f5; color: var(--gray); }

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-container,
.recent-activities {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.activities-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Camera Styles */
.camera-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.camera-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.camera-preview {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#cameraVideo,
#cameraCanvas {
    width: 100%;
    height: auto;
    display: block;
}

.camera-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
}

.gps-info {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.camera-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.captured-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.media-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
}
/* Due Diligence Report Styles */
.due-diligence-report {
    background: white;
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
}

.report-header {
    text-align: center;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.report-header h1 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.report-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.report-section h2 {
    color: #1976d2;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.supply-chain-map {
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 1rem 0;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.evidence-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
}

.evidence-item img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.compliance-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0.25rem;
}

.badge-compliant {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #388e3c;
}

.badge-non-compliant {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #d32f2f;
}

.badge-pending {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #f57c00;
}

.signature-section {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.signature-line {
    display: inline-block;
    width: 200px;
    border-bottom: 1px solid #333;
    margin: 0 1rem;
}
.recording-timer {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recording-timer .fa-circle {
    animation: pulse 1s infinite;
}
/* Resource Origin Modal Styles */
.commodity-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 4px;
}

.commodity-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commodity-checkbox-item input[type="checkbox"] {
    margin: 0;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.coordinates-input {
    display: flex;
    gap: 0.5rem;
}

.coordinates-input input {
    flex: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Enhanced form styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Consent Application Modal Styles */
.authenticator-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    border-left: 4px solid #1976d2;
}

.detail-item {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.25rem;
}

.checkbox-item label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.application-summary {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #388e3c;
}

.application-summary h4 {
    margin: 0 0 1rem 0;
    color: #2e7d32;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-weight: 600;
    color: #555;
}

.summary-value {
    font-weight: 700;
    color: #1976d2;
}

/* Enhanced form styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Fee display styles */
.fee-breakdown {
    background: #fff3e0;
    padding: 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    border-left: 4px solid #f57c00;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
}

.fee-total {
    border-top: 1px solid #f57c00;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-weight: bold;
}
/* Create Shipment Modal Styles */
.evidence-requirements {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #1976d2;
}

.requirement-item i {
    color: #1976d2;
    width: 16px;
}

.balance-check {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #388e3c;
}

.balance-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2e7d32;
}

.balance-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.shipment-summary {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #1976d2;
}

.shipment-summary h4 {
    margin: 0 0 1rem 0;
    color: #1976d2;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.summary-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 700;
    color: #1976d2;
    font-size: 0.9rem;
}

.status-draft {
    color: #f57c00;
    font-weight: 600;
}

.status-submitted {
    color: #1976d2;
    font-weight: 600;
}

.status-approved {
    color: #388e3c;
    font-weight: 600;
}

/* Form step indicators */
.form-section h4 {
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4::before {
    content: counter(section);
    counter-increment: section;
    background: #1976d2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.form-section {
    counter-reset: section;
}

/* Text warning */
.text-warning {
    color: #f57c00;
    font-size: 0.8rem;
    font-style: italic;
}

/* File upload hints */
input[type="file"] {
    padding: 0.5rem;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
}

input[type="file"]:hover {
    border-color: #1976d2;
    background: #f0f7ff;
}
/* Evidence Tracker Styles */
.evidence-tracker {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tracker-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #f57c00;
}

.tracker-item:last-child {
    margin-bottom: 0;
}

.tracker-status {
    margin-top: 0.25rem;
}

.tracker-status .status-pending {
    color: #f57c00;
}

.tracker-status .status-completed {
    color: #388e3c;
}

.tracker-content {
    flex: 1;
}

.tracker-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.tracker-content small {
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}

.tracker-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1976d2;
    color: #1976d2;
}

.btn-outline:hover {
    background: #1976d2;
    color: white;
}

.evidence-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f0f7ff;
    border-radius: 4px;
    border: 1px dashed #1976d2;
}

.evidence-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    margin-right: 0.5rem;
}
/* Requirements Notice Styles */
.requirements-notice {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #1976d2;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1976d2;
    font-size: 1.1rem;
}

.notice-header i {
    font-size: 1.5rem;
}

.notice-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.notice-content li {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.notice-content em {
    color: #666;
    font-size: 0.9rem;
}
/* Shipment Details Modal Styles */
.shipment-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.shipment-info-card h4 {
    margin: 0 0 1rem 0;
    color: #1976d2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    font-weight: 700;
    color: #1976d2;
}

/* Progress Section */
.progress-section {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #1976d2;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress-actions {
    text-align: center;
}

.progress-actions small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.evidence-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.tracker-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #f57c00;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tracker-item.completed {
    border-left-color: #388e3c;
    background: #f8fff8;
}

.status-completed {
    color: #388e3c !important;
}

.status-pending {
    color: #f57c00 !important;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: #d32f2f;
    transition: width 0.3s ease, background 0.3s ease;
}

.progress-text {
    text-align: center;
    margin: 0.5rem 0;
    font-weight: 500;
}



.info-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #1976d2;
    }

    .info-section h4 {
        margin: 0 0 1rem 0;
        color: #1976d2;
        font-size: 1.1rem;
    }

    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .info-item {
        display: flex;
        flex-direction: column;
    }

    .info-item-full {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
    }

    .info-item label,
    .info-item-full label {
        font-weight: 600;
        color: #555;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    .info-value {
        color: #333;
        font-size: 1rem;
    }

    .progress-section {
        margin: 1rem 0;
    }

    .evidence-list {
        margin-top: 1rem;
    }

    .evidence-item {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        margin: 0.5rem 0;
        background: white;
        border-radius: 6px;
        border-left: 4px solid #4CAF50;
    }

    .evidence-item.captured {
        border-left-color: #FF9800;
    }

    .evidence-item i {
        margin-right: 0.75rem;
        font-size: 1.2rem;
        color: #666;
    }

    .evidence-info {
        flex: 1;
    }

    .evidence-info strong {
        display: block;
        margin-bottom: 0.25rem;
    }

    .evidence-date {
        font-size: 0.8rem;
        color: #888;
    }

    .document-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .document-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: white;
        border-radius: 4px;
    }

    .document-status.uploaded {
        color: #4CAF50;
        font-weight: 600;
    }

    .document-status.pending {
        color: #FF9800;
        font-weight: 600;
    }

    .footer-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    /* Edit Modal Styles */
    .edit-summary {
        background: #e3f2fd;
        padding: 1rem;
        border-radius: 6px;
        margin-top: 1rem;
    }

    .summary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .file-status {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        margin-left: 0.5rem;
    }

    .file-status.uploaded {
        background: #e8f5e8;
        color: #388e3c;
    }

    /* Status Badges */
    .status-draft { background: #ffeb3b; color: #333; }
    .status-submitted { background: #2196f3; color: white; }
    .status-approved { background: #4caf50; color: white; }
    .status-shipped { background: #ff9800; color: white; }
    .status-completed { background: #607d8b; color: white; }
    .status-rejected { background: #f44336; color: white; }

    /* Modal Header Actions */
    .modal-actions {
        display: flex;
        gap: 0.5rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .info-grid,
        .document-grid,
        .summary-grid {
            grid-template-columns: 1fr;
        }
        
        .footer-actions {
            flex-direction: column;
        }
        
        .footer-actions .btn {
            width: 100%;
        }
    }
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.media-item {
    position: relative;
}

.media-item .btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
}

.media-item .btn:hover {
    background: rgba(0, 0, 0, 0.9);
}
/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .due-diligence-report,
    .due-diligence-report * {
        visibility: visible;
    }
    
    .due-diligence-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .report-controls {
        display: none;
    }
    
    .report-section {
        page-break-inside: avoid;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        grid-template-areas: 
            "header"
            "main";
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
    }

    .sidebar {
        display: none;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }
}