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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    text-align: center;
}

/* Background Variants */
body.success-bg {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

body.error-bg {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

body.cancel-bg {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Home Page Styles */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.info {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-radius: 5px;
}

.footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

/* Common Icon Styles */
.error-icon, .success-icon, .cancel-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Title Styles */
.error-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.success-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.cancel-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 15px;
}

/* Message Styles */
.error-message, .message, .success-message, .cancel-message {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Invoice Number Styling */
.invoice-number {
    font-family: 'Monaco', 'Menlo', monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    color: #e74c3c;
    font-weight: bold;
}

/* Help Box Styles */
.help {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.help.info-variant {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
}

.help-title {
    font-weight: bold;
    color: #b8860b;
    margin-bottom: 10px;
}

.help.info-variant .help-title {
    color: #0c5460;
}

/* Invoice Info Boxes */
.invoice-info {
    background: #e8f5e8;
    border: 1px solid #d4edda;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.invoice-info.cancel-variant {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

/* Payment Details (Success Page) */
.payment-details {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-weight: bold;
    font-family: 'Monaco', 'Menlo', monospace;
}

/* Note Styles */
.note {
    background: #e8f5e8;
    border: 1px solid #d4edda;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #155724;
}

/* Button Styles */
.buttons {
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 10px;
}

.retry-button {
    background: #f39c12;
    color: white;
}

.retry-button:hover {
    background: #e67e22;
}

/* 404 Page Specific */
.error-title.page-not-found {
    color: #667eea;
}