/*  -v1.0 css */


/* Main container styles */
.digital-signature-section {
    border-left: 4px solid #2ea3f2;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Section header styles */
.section-header {
    background: linear-gradient(to right, #f7f7f7, #ffffff);
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    color: #333;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

/* Section content styles */
.section-content {
    padding: 20px;
    display: none;
}

.section-content.active {
    display: block;
}

/* Instructions box styles */
.instructions-box {
    background-color: #e7f3fe;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin-bottom: 20px;
}

.instructions-box h3 {
    color: #0d47a1;
    font-size: 16px;
    margin-bottom: 10px;
}

.instructions-box ol {
    margin-left: 20px;
    color: #1565c0;
}

/* Form input styles */
.signature-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.signature-input:focus {
    border-color: #2ea3f2;
    outline: none;
    box-shadow: 0 0 5px rgba(46,163,242,0.2);
}

/* File upload area styles */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #2ea3f2;
    background-color: #f7f9fc;
}

.file-upload-area.dragging {
    border-color: #2ea3f2;
    background-color: #f0f8ff;
}

/* Button styles */
.et_pb_button.signature-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px !important;
    border: none;
    background-color: #2ea3f2;
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.et_pb_button.signature-button:hover {
    background-color: #1e8fe0 !important;
    padding: 12px 24px !important;
}

/* Message box styles */
.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message-box.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.message-box.error {
    background-color: #fbe9e7;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* Animation styles */
.chevron {
    transition: transform 0.3s ease;
}

.chevron.active {
    transform: rotate(180deg);
}

/* Add to cryptographic-tools.css */
.chevron.active {
    transform: rotate(180deg);
}

.file-upload-area.dragging {
    border-color: #2ea3f2;
    background-color: #f7f9fc;
}

.section-content {
    display: none;
}

.file-drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
}

.file-drop-area.dragging {
    border-color: #000;
    background: #f7f7f7;
}

.error-message {
    color: red;
    margin-top: 10px;
    display: none;
}

.success-message {
    color: green;
    margin-top: 10px;
}

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

/* Add to puddingify-tools.css */
.certificate-form {
    max-width: 600px;
    margin: 0 auto;
}

.cert-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cert-status.progress {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.cert-status.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.cert-status.error {
    background-color: #fbe9e7;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.cert-status.error {
    background-color: #fbe9e7;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.cert-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cert-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Progress indicator animation */
@keyframes progress-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.cert-status.progress {
    animation: progress-pulse 1.5s infinite;
}

/* Zip file handling styles */
.zip-contents {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.file-list {
    margin-top: 10px;
}

.zip-file-entry {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zip-file-entry:hover {
    background-color: #f0f7ff;
    border-color: #2ea3f2;
}

.zip-file-entry .file-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.zip-file-entry .file-icon {
    margin-right: 10px;
    color: #666;
}

.zip-file-entry .file-name {
    flex-grow: 1;
}

.zip-file-entry .file-size {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.zip-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.zip-status.processing {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.zip-status.error {
    background-color: #fbe9e7;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.download-button {
    padding: 6px 12px;
    background-color: #2ea3f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #1e8fe0;
}

.file-icon {
    margin-right: 12px;
    font-size: 18px;
}

.download-all-container {
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.download-all-btn {
    background-color: #4CAF50;
    padding: 10px 20px;
    min-width: 150px;
}

.download-all-btn:hover {
    background-color: #45a049;
}

/* Security Warning Accordion Styles */
.security-warning-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.security-warning-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.security-warning-header:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

.warning-icon {
    font-size: 18px;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.warning-text {
    flex-grow: 1;
}

.toggle-indicator {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.security-warning-content {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.security-warning-content.expanded {
    max-height: 800px;
    padding: 20px;
}

.warning-details p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #374151;
}

.recommendations {
    background: #fee2e2;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 3px solid #dc2626;
}

.recommendations h4 {
    color: #dc2626;
    margin-bottom: 10px;
    font-size: 14px;
}

.recommendations ol {
    margin-left: 20px;
    color: #374151;
}

.recommendations li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.support-link {
    background: #dbeafe;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    margin: 15px 0;
}

.support-link p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
}

.support-link a {
    color: #1d4ed8;
    text-decoration: underline;
}

.support-link a:hover {
    color: #1e3a8a;
}

.disclaimer {
    background: #f3f4f6;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.disclaimer p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.windows-text {
    color: lightblue; /* light blue color codes #ADD8E6  */
    font-weight: bold;
}

/* Mobile adjustments for security warning */
@media (max-width: 640px) {
    .security-warning-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .warning-icon {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .toggle-indicator {
        font-size: 11px;
    }
    
    .security-warning-content.expanded {
        padding: 15px;
    }
    
    .recommendations, .support-link {
        padding: 12px;
        margin: 12px 0;
    }
}
/* NEW other SIGNATURE TOOL STYLES -  */

/* Private Key Signing Section Styles */
.private-key-input {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #856404;
}

.private-key-input h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Workflow Steps Styling */
.workflow-steps {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #28a745;
}

.workflow-steps h4 {
    color: #155724;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.workflow-steps ol {
    margin: 1rem 0 0 1.5rem;
    color: #155724;
    line-height: 1.6;
}

.workflow-steps li {
    margin-bottom: 0.5rem;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: monospace;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Signature Input Areas */
.signature-input,
.public-key-input {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #007cba;
}

.signature-input label,
.public-key-input label {
    font-weight: 600;
    color: #007cba;
    margin-bottom: 0.5rem;
}

/* File Upload Area for Private Keys */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.file-upload-area p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Status Messages */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Button Styling */
button {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin: 0.25rem;
    transition: background-color 0.2s;
}

button:hover {
    background: #005a87;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.proof-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.signature-section {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.signature-display {
    width: 100%;
    height: 80px;
    font-family: monospace;
    font-size: 0.8rem;
    padding: 0.5rem;
}

.full-proof-section {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.verification-instructions {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}


/* Verify Identity Proof */

.verification-status {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

.verification-status.processing {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.proof-validity {
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.proof-validity.valid {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.proof-validity.invalid {
    background: #fbe9e7;
    border: 2px solid #f44336;
    color: #c62828;
}

.identity-claims {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.identity-claims h4 {
    color: #495057;
    margin-top: 0;
}

.claim-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.claim-item:last-child {
    border-bottom: none;
}

.claim-label {
    font-weight: 600;
    color: #495057;
}

.claim-value {
    font-family: monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    max-width: 60%;
    word-break: break-all;
}

.verification-details {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.verification-details h5 {
    color: #856404;
    margin-top: 0;
}

.verification-details ul {
    margin: 10px 0 0 20px;
    color: #856404;
}

.technical-details {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
}

.technical-details summary {
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.technical-details pre {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    font-size: 12px;
    margin: 10px 0;
}

/* Popup System */

.popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
    }

    .popup-container {
        background: white;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        max-width: 550px;
        width: 90%;
        max-height: 85vh;
        overflow-y: auto;
        animation: popupSlideIn 0.3s ease-out;
    }

    @keyframes popupSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes popupSlideOut {
        to {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideOutRight {
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    .popup-header {
        color: white;
        padding: 20px;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .popup-header.mismatch-both {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
    }

    .popup-header.mismatch-alias {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .popup-header.mismatch-email {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }

    .popup-header.mismatch-unknown {
        background: linear-gradient(135deg, #6b7280, #4b5563);
    }

    .popup-icon {
        font-size: 24px;
        animation: pulse 2s infinite;
    }

    .popup-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    .popup-body {
        padding: 24px;
        line-height: 1.6;
    }

    .error-details {
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 8px;
        padding: 16px;
        margin: 16px 0;
    }

    .mismatch-info {
        display: grid;
        gap: 12px;
        margin: 16px 0;
    }

    .info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: #f9fafb;
        border-radius: 6px;
        border-left: 3px solid #6b7280;
    }

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

    .info-value {
        font-family: monospace;
        background: white;
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid #e5e7eb;
        font-size: 0.9em;
    }

    .value-correct {
        border-color: #10b981;
        background: #ecfdf5;
        color: #065f46;
    }

    .value-incorrect {
        border-color: #dc2626;
        background: #fef2f2;
        color: #991b1b;
    }

    .solutions {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        padding: 16px;
        margin: 16px 0;
    }

    .solutions h4 {
        color: #1d4ed8;
        margin: 0 0 12px 0;
        font-size: 16px;
    }

    .solutions ol {
        margin: 12px 0 0 20px;
        color: #1e40af;
    }

    .solutions li {
        margin-bottom: 8px;
    }

    .popup-footer {
        padding: 20px 24px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        background: #f9fafb;
        border-radius: 0 0 12px 12px;
        flex-wrap: wrap;
    }

    .popup-button {
        padding: 10px 16px;
        border: none;
        border-radius: 6px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
        white-space: nowrap;
    }

    .button-primary {
        background: #dc2626;
        color: white;
    }

    .button-primary:hover {
        background: #b91c1c;
        transform: translateY(-1px);
    }

    .button-success {
        background: #10b981;
        color: white;
    }

    .button-success:hover {
        background: #059669;
        transform: translateY(-1px);
    }

    .button-secondary {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #d1d5db;
    }

    .button-secondary:hover {
        background: #e5e7eb;
    }

    .success-notification {
        font-size: 14px;
        font-weight: 500;
    }

    @media (max-width: 640px) {
        .popup-container {
            width: 95%;
            margin: 20px;
        }

        .popup-header {
            padding: 16px;
        }

        .popup-body {
            padding: 20px;
        }

        .popup-footer {
            padding: 16px;
            flex-direction: column;
        }

        .popup-button {
            width: 100%;
            margin-bottom: 8px;
        }

        .info-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
    }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tool-tabs {
        flex-direction: column;
    }
    
    .tool-tab {
        margin-bottom: 0.5rem;
    }
    
    .signature-tools-section {
        padding: 1rem;
    }
    
    .proof-actions {
        flex-direction: column;
    }
}

/* NEW SIGNATURE TOOL STYLES -  */
.signature-tools-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 1rem;
}

.tool-tab {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.tool-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tool-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.tool-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-panel.active {
    display: block;
}

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

.message-output {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin: 1rem 0;
}

.signature-input,
.public-key-input {
    background: #f1f3f4;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #007cba;
}

.proof-container {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
}

.proof-json {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    background: white;
    resize: vertical;
}

.proof-actions {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.verification-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
}

.verification-info h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.verification-info p,
.verification-info ul,
.verification-info li {
    color: #856404;
}