* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #03052D 0%, #0a0a3a 25%, #1a1a4a 50%, #2a2a5a 75%, #3a3a6a 100%);
    min-height: 100vh;
    color: #ffffff;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 20%, rgba(85, 224, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(48, 232, 228, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(140, 241, 237, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(12, 253, 220, 0.02) 50%, transparent 70%),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(85, 224, 233, 0.01) 50px, rgba(85, 224, 233, 0.01) 51px),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(48, 232, 228, 0.01) 50px, rgba(48, 232, 228, 0.01) 51px);
    opacity: 1;
}

/* Navbar */
.navbar {
    background: #F6F6F6;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(85, 224, 233, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #03052D;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #03052D;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #55E0E9;
    background: rgba(85, 224, 233, 0.1);
}

.nav-link.active {
    color: #55E0E9;
    background: rgba(85, 224, 233, 0.1);
}

.nav-logo {
    height: 48px;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

/* Main Content */
.main-content {
    max-width: 1000px;
    margin: 3rem auto 0 auto;
    padding: 0 2rem 3rem 2rem;
    position: relative;
    z-index: 1;
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.98) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(3,5,45,0.08), 0 1.5px 6px rgba(85,224,233,0.06);
    padding: 2.5rem 3rem 2rem 3rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(85, 224, 233, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #55E0E9, #30E8E4, #8CF1ED, #4ADBED);
    opacity: 0.8;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    flex-direction: column;
    text-align: center;
    background: none;
    box-shadow: none;
    margin-bottom: 0.5rem;
    padding:0;
    z-index: 2;
}

.main-header {
    color: #ffffff !important;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #03052D;
}

.page-header h3{
    font-size: 1.2rem;
    font-weight: 300;
    color: #03052D;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 90%;
    margin-left: auto;
}

.ca-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.ca-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #03052D;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.ca-dropdown:hover {
    border-color: #55E0E9;
}

.ca-dropdown:focus {
    outline: none;
    border-color: #55E0E9;
    box-shadow: 0 0 0 3px rgba(85, 224, 233, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #03052D;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #03052D;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #55E0E9;
    box-shadow: 0 0 0 3px rgba(85, 224, 233, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #55E0E9 0%, #30E8E4 100%);
    color: #03052D;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(85, 224, 233, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #03052D;
    border: 2px solid #55E0E9;
}

.btn-secondary:hover:not(:disabled) {
    background: white;
    border-color: #30E8E4;
    color: #03052D;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-submit {
    margin-top: 1rem;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(3, 5, 45, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(85, 224, 233, 0.1);
}

.file-type-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.file-type-selector label {
    display: block;
    font-weight: 600;
    color: #03052D;
    margin-bottom: 0.5rem;
}

.file-type-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #03052D;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.file-type-dropdown:hover {
    border-color: #55E0E9;
}

.file-type-dropdown:focus {
    outline: none;
    border-color: #55E0E9;
    box-shadow: 0 0 0 3px rgba(85, 224, 233, 0.1);
}

.upload-box {
    border: 2px dashed #55E0E9;
    border-radius: 12px;
    padding: 4rem 3rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.upload-box.dragover {
    border-color: #30E8E4;
    background: rgba(85, 224, 233, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #55E0E9;
}

.upload-box p {
    color: #03052D;
    font-weight: 500;
}

.file-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(85, 224, 233, 0.1);
    border-radius: 8px;
    border-left: 4px solid #55E0E9;
}

.file-info p {
    color: #03052D;
    margin: 0.25rem 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 45, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(3, 5, 45, 0.2);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h3 {
    margin: 0;
    color: #03052D;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #03052D;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(85, 224, 233, 0.1);
    color: #55E0E9;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: #03052D;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.loading-spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #55E0E9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.success {
    color: #30E8E4;
}

.error {
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .main-content {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }
    
    .upload-section {
        padding: 1.5rem;
    }
    
    .upload-box {
        padding: 2rem 1rem;
    }
}

@media (max-width: 600px) {
    .main-content {
        max-width: 100%;
        padding: 0 0.5rem 2rem 0.5rem;
    }
    .card {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        border-radius: 12px;
    }
    .tab-btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

.verification-info {
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #03052D;
}

.info-value {
    color: #03052D;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.verification-status {
    margin-top: 2rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.status-label {
    font-weight: 600;
    color: #03052D;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    font-size: 1.2rem;
}

.status-icon.valid {
    color: #30E8E4;
}

.status-icon.invalid {
    color: #ff6b6b;
}

.status-text {
    font-weight: 500;
}

.status-text.valid {
    color: #30E8E4;
}

.status-text.invalid {
    color: #ff6b6b;
}

.verification-actions {
    margin-top: 2rem;
    text-align: center;
}

.modal-header h3.success {
    color: #30E8E4;
}

.modal-header h3.error {
    color: #ff6b6b;
}

.tab-controls {
    display: flex;
    gap: 1rem;
    margin: 0 0 -1.5rem 0;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.tab-btn {
    background: white;
    border: 2px solid #55E0E9;
    color: #03052D;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(85,224,233,0.08);
    margin-bottom: -2px;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    background: linear-gradient(135deg, #55E0E9 0%, #30E8E4 100%);
    color: #03052D;
    border-bottom: 2px solid white;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(85,224,233,0.12);
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    font-weight: 300;
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#certify-page, #verify-page {
    margin-top: 0;
}

#certify-page .upload-section, #verify-page .upload-section {
    margin-top: 0;
    box-shadow: none;
    background: none;
    padding: 0;
}

/* Enhanced Verification Modal Styles */
.verification-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.provenance-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.98) 100%);
    border-radius: 12px;
    border: 1px solid rgba(85, 224, 233, 0.15);
    box-shadow: 0 2px 8px rgba(3,5,45,0.05);
}

.provenance-section h4 {
    margin: 0 0 1rem 0;
    color: #03052D;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.provenance-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.provenance-item .label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.provenance-item .value {
    font-size: 0.95rem;
    color: #03052D;
    font-weight: 500;
    word-break: break-word;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.certified {
    background: linear-gradient(135deg, #55E0E9, #30E8E4);
    color: #03052D;
}

.status-badge.active {
    background: linear-gradient(135deg, #8CF1ED, #4ADBED);
    color: #03052D;
}

.status-badge.standard {
    background: linear-gradient(135deg, #56D3F7, #0CFDDC);
    color: #03052D;
}

.status-badge.certificate_authority {
    background: linear-gradient(135deg, #2BEBE3, #1EFCDE);
    color: #03052D;
}

/* Responsive adjustments for provenance display */
@media (max-width: 768px) {
    .provenance-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .provenance-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .provenance-section h4 {
        font-size: 1rem;
    }
    
    .provenance-item .label {
        font-size: 0.8rem;
    }
    
    .provenance-item .value {
        font-size: 0.9rem;
    }
}

/* Metadata Section Styles */
.metadata-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.98) 100%);
    border-radius: 12px;
    border: 1px solid rgba(85, 224, 233, 0.15);
    box-shadow: 0 2px 8px rgba(3,5,45,0.05);
}

.metadata-section h4 {
    margin: 0 0 1.5rem 0;
    color: #03052D;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.metadata-grid .form-group {
    margin: 0;
}

.metadata-grid .form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metadata-grid .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(85, 224, 233, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #03052D;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.metadata-grid .form-input:focus {
    outline: none;
    border-color: #55E0E9;
    box-shadow: 0 0 0 3px rgba(85, 224, 233, 0.1);
    background: rgba(255, 255, 255, 1);
}

.metadata-grid .form-input::placeholder {
    color: #999;
}

/* Responsive adjustments for metadata */
@media (max-width: 768px) {
    .metadata-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .metadata-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .metadata-section h4 {
        font-size: 1rem;
    }
    
    .metadata-grid .form-group label {
        font-size: 0.8rem;
    }
    
    .metadata-grid .form-input {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Enhanced verification details */
.verification-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.verification-check {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.verification-check.passed {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.6));
}

.verification-check.failed {
    border-left: 4px solid #ef4444;
    background: #EF4544;
    color: white;
}

.check-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.check-header i {
    font-size: 1.1rem;
}

.verification-check.passed .check-header i {
    color: #10b981;
}

.verification-check.failed .check-header i {
    color: #ef4444;
}

.check-name {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.check-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.check-details {
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Security features and compliance standards */
.security-features-grid,
.compliance-standards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-badge,
.standard-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.standard-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Certification level badges */
.level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.standard {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.level-badge.enhanced {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.level-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.level-badge.enterprise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Security level badges */
.security-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge.basic {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.security-badge.enhanced {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.security-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.security-badge.enterprise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
} 