/* LibreMonero Demo Page Styles */

* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    transition: background 0.3s;
}

body.celebration {
    animation: celebrate 5s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    10% { background: linear-gradient(135deg, #55efc4 0%, #00b894 100%); }
    20% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    30% { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
    40% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); }
    60% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    70% { background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%); }
    80% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    90% { background: linear-gradient(135deg, #55efc4 0%, #00b894 100%); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 1.6em;
    margin-bottom: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 0.9em;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.feature {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.feature-icon {
    font-size: 1.3em;
    margin-bottom: 3px;
}

.feature-text {
    font-size: 0.8em;
    color: #666;
    line-height: 1.2;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wallet-error {
    background: #ff7675;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.wallet-error h3 {
    margin-bottom: 10px;
}

.wallet-error button {
    background: white;
    color: #ff7675;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.payment-details {
    display: none;
    margin-top: 15px;
}

.payment-details.active {
    display: block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: bold;
    color: #667eea;
}

.detail-value {
    color: #333;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-pending {
    background: #ffeaa7;
    color: #fdcb6e;
}

.status-detected {
    background: #74b9ff;
    color: #0984e3;
}

.status-confirming {
    background: #a29bfe;
    color: #6c5ce7;
}

.status-confirmed {
    background: #55efc4;
    color: #00b894;
}

.status-expired {
    background: #dfe6e9;
    color: #636e72;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    border: none;
    font-size: 1em;
    transition: all 0.3s;
    border-radius: 10px 10px 0 0;
}

.tab.active {
    background: white;
    border-bottom: 3px solid #667eea;
    font-weight: bold;
    color: #667eea;
}

.tab-content {
    display: none;
}

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

.qr-container {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-container canvas {
    max-width: 100%;
    height: auto;
    border: 5px solid #667eea;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.qr-container > div {
    display: flex;
    justify-content: center;
    width: 100%;
}

.address-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
    margin: 15px 0;
    border: 2px solid #667eea;
    cursor: pointer;
    transition: background 0.2s;
}

.address-display:hover {
    background: #e9ecef;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #5568d3;
}

.timer {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #667eea;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

.recent-tests {
    margin-top: 20px;
}

.recent-tests h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.test-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.test-speed {
    color: #00b894;
    font-weight: bold;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: white;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #55efc4;
    color: #00b894;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

/* Success Animation - Green Circle with Checkmark */
.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-circle {
    width: 256px;
    height: 256px;
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.4);
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkmark {
    width: 120px;
    height: 120px;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: drawCheck 0.8s ease-in-out 0.3s forwards;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.success-message {
    margin-top: 30px;
    font-size: 1.5em;
    font-weight: bold;
    color: #00b894;
    text-align: center;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Warning Animation - Yellow Circle with Exclamation */
.warning-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.warning-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.exclamation {
    font-size: 4em;
    color: white;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

.warning-message {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #fdcb6e;
    border-radius: 10px;
    color: #856404;
}

.warning-message h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #f39c12;
}

.warning-message .amount-details {
    font-size: 1em;
    margin: 5px 0;
}

.warning-message .amount-received {
    color: #e74c3c;
    font-weight: bold;
}

.warning-message .amount-expected {
    color: #27ae60;
    font-weight: bold;
}

.warning-message .amount-remaining {
    font-size: 1.3em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #fdcb6e;
    color: #d35400;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.qr-container.dimmed {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Expired Animation - Gray Circle */
.expired-circle {
    width: 256px;
    height: 256px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(127, 140, 141, 0.4);
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .success-circle {
        width: 200px;
        height: 200px;
    }
    
    .checkmark {
        width: 90px;
        height: 90px;
    }
    
    .warning-circle {
        width: 100px;
        height: 100px;
    }
    
    .exclamation {
        font-size: 3em;
    }
}

