@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/ubuntu/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/ubuntu/Ubuntu-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/ubuntu/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Override Fomantic UI to use Ubuntu font */
body,
.ui.header,
.ui.button,
.ui.menu,
.ui.message {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

body {
    background-color: #ffffff;
}

/* Logo styling */
.logo,
a.logo.item {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    text-decoration: none !important;
}

.logo img {
    height: 36px !important;
    width: auto !important;
    margin: 0 -2px !important;
}

.logo:hover,
a.logo.item:hover {
    color: #1e3a8a !important;
}

/* Main header */
.main-header {
    padding: 60px 0 40px 0 !important;
}

.main-header h1 {
    font-size: 48px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.main-header .subtitle {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
}

/* Upload segment styling */
.upload-segment {
    text-align: center;
    padding: 60px 40px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #d0d0d0 !important;
}

.upload-segment:hover {
    border-color: #999 !important;
    background-color: #f5f5f5 !important;
}

.upload-segment.dragover {
    border-color: #667eea !important;
    background-color: #f0f4ff !important;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

/* Feature cards */
.feature-card {
    height: 100%;
}

/* Result area */
.result-area {
    display: none;
}

.result-area.active {
    display: block;
}

/* Error/Warning message styling */
.validation-message {
    margin-bottom: 0.5em !important;
}

.validation-message .header {
    font-size: 14px !important;
}

/* Status Dashboard */
.status-dashboard {
    margin-bottom: 30px;
}

.status-line {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    transition: all 0.2s;
}

.status-line .icon {
    font-size: 20px;
    margin-right: 12px;
    color: #999;
}

.status-line .status-label {
    font-weight: 600;
    min-width: 120px;
    color: #666;
}

.status-line .status-text {
    color: #333;
}

/* Status line states */
.status-line.inactive {
    background: #f9f9f9;
    border-color: #e0e0e0;
}

.status-line.success {
    background: #f0fdf4;
    border-color: #86efac;
}

.status-line.success .icon {
    color: #16a34a;
}

.status-line.success .status-label,
.status-line.success .status-text {
    color: #166534;
}

.status-line.warning {
    background: #fffbeb;
    border-color: #fde047;
}

.status-line.warning .icon {
    color: #ca8a04;
}

.status-line.warning .status-label,
.status-line.warning .status-text {
    color: #854d0e;
}

.status-line.error {
    background: #fef2f2;
    border-color: #fca5a5;
}

.status-line.error .icon {
    color: #dc2626;
}

.status-line.error .status-label,
.status-line.error .status-text {
    color: #991b1b;
}

/* Footer styling */
.footer-segment {
    margin-top: 80px !important;
    padding: 40px 0 !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 32px !important;
    }

    .main-header .subtitle {
        font-size: 18px;
    }

    .upload-segment {
        padding: 40px 20px !important;
    }
}

/* Report Modal - make it wider for 230mm document */
#reportModal.ui.modal {
    width: 95% !important;
    max-width: 950px !important;
}

@media (max-width: 768px) {
    #reportModal.ui.modal {
        width: 100% !important;
    }
}

/* Hide file input */
#fileInput {
    display: none;
}
