/* DGA Exact Government Signature Bar - Matching dga.gov.sa Design */
.dga-signature-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100000;
    background: #f9fafb;
    font-family: 'Cairo', 'Segoe UI', Arial, 'Noto Sans Arabic', 'Droid Arabic Kufi', Tahoma, sans-serif;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dga-signature-bar {
    background: #f9fafb;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
}

.dga-signature-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 15px;
}

/* Left side - Main signature */
.dga-signature-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dga-flag-icon {
    width: 28px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
}

.dga-signature-text {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    display: inline-block;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Right side - Verification toggle */
.dga-signature-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dga-verify-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #374151;
    background: transparent;
    border: 1px solid transparent;
}

.dga-verify-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.dga-verify-text {
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.dga-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    display: inline-block;
    transition: transform 0.2s ease;
}

.dga-verify-toggle.active .dga-arrow {
    transform: rotate(180deg);
}

/* Verification Panel */
.dga-verify-panel {
    background: #ffffff;
    color: #374151;
    padding: 20px;
    display: none;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dga-verify-panel.show {
    display: block;
}

.dga-verify-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

/* New verification sections layout */
.dga-verify-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.dga-verify-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.dga-verify-icon {
    width: 48px;
    height: 48px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.dga-verify-icon svg {
    width: 24px;
    height: 24px;
}

.dga-verify-section h3 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.dga-verify-section p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.dga-verify-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.dga-verify-phone {
    color: #059669;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
    display: inline-block;
}

.dga-verify-phone:hover {
    color: #047857;
    text-decoration: underline;
    background-color: rgba(5, 150, 105, 0.1);
    transform: translateY(-1px);
}

.dga-verify-phone:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
    background-color: rgba(5, 150, 105, 0.1);
}

.dga-verify-phone:active {
    transform: translateY(0);
}

.dga-verify-logo {
    width: 32px;
    height: 32px;
    color: #059669;
}

.dga-verify-logo svg {
    width: 100%;
    height: 100%;
}

/* Mobile responsive for verification panel */
@media (max-width: 768px) {
    .dga-verify-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dga-verify-section {
        text-align: center;
        align-items: center;
    }
    
    .dga-verify-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Language and Search Section */
.dga-language-search {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dga-language-selector {
    position: relative;
    display: inline-block;
}

.dga-language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dga-language-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.dga-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dga-search-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.05);
}

.dga-search-icon {
    width: 18px;
    height: 18px;
}

/* Body adjustment */
body.has-dga-signature {
    padding-top: 40px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dga-signature-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .dga-signature-left {
        order: 1;
        justify-content: center;
    }
    
    .dga-signature-right {
        order: 2;
        flex-direction: row-reverse;
        gap: 10px;
    }
    
    .dga-signature-text {
        font-size: 12px;
        text-align: center;
    }
    
    .dga-verify-text {
        font-size: 12px;
    }
    
    .dga-flag-icon {
        width: 22px;
        height: 16px;
    }
    
    body.has-dga-signature {
        padding-top: 70px !important;
    }
    
    .dga-verify-panel {
        padding: 15px;
    }
}

/* RTL Support */
[dir="rtl"] .dga-signature-container {
    direction: rtl;
}

[dir="rtl"] .dga-signature-left {
    flex-direction: row-reverse;
}

[dir="rtl"] .dga-signature-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .dga-verify-list {
    padding: 0 20px 0 0;
}

[dir="rtl"] .dga-language-search {
    flex-direction: row-reverse;
}

/* Enhanced hover effects */
.dga-verify-toggle:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.dga-search-btn:focus,
.dga-language-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Smooth animations */
.dga-verify-panel {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dga-signature-wrapper {
        border-bottom: 2px solid #000;
    }
    
    .dga-signature-text,
    .dga-verify-text {
        color: #000;
        font-weight: 600;
    }
}