/* ========================================
   General Page Styles - For Simple Pages
   Professional, Modern, Clean White Theme
   Used for: error, login, upgradecomplete, and other simple pages
   ======================================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.general-page {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    font-family: metropolisregular, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 600px;
}

.general-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* General Card */
.general-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.4s ease;
    margin-bottom: 30px;
}

/* Card Headers - Multiple Variants */
.card-header {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Success Header (Green) */
.card-header.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Error Header (Red) */
.card-header.error {
    background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
}

/* Warning Header (Orange) */
.card-header.warning {
    background: linear-gradient(135deg, #f76d3c 0%, #ff8659 100%);
}

/* Info Header (Blue) */
.card-header.info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

/* Primary Header (Green - Default) */
.card-header.primary {
    background: linear-gradient(135deg, #67a552 0%, #6eb057 100%);
}

/* Header Icon */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 40px;
    color: #fff;
}

/* Header Title */
.card-title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: metropolissemi_bold, sans-serif;
    letter-spacing: 0.5px;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
}

/* Card Body */
.card-body {
    padding: 35px;
    background: #fff;
}

/* Message Box */
.message-box {
    padding: 25px;
    background: linear-gradient(135deg, #f8faf7 0%, #fff 100%);
    border-radius: 8px;
    border: 1px solid #e8ebe7;
    margin-bottom: 25px;
    text-align: center;
}

.message-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.message-text p {
    margin: 0 0 16px 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* Alert Boxes */
.alert-box {
    display: flex;
    align-items: flex-start;
    padding: 18px 24px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-box i {
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-box.error {
    color: #721c24;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-color: #f5c6cb;
}

.alert-box.error i {
    color: #dc3545;
}

.alert-box.success {
    color: #155724;
    background: linear-gradient(135deg, #f0fff4 0%, #d4edda 100%);
    border-color: #c3e6cb;
}

.alert-box.success i {
    color: #28a745;
}

.alert-box.warning {
    color: #856404;
    background: linear-gradient(135deg, #fffdf5 0%, #fff3cd 100%);
    border-color: #ffeaa7;
}

.alert-box.warning i {
    color: #ffc107;
}

.alert-box.info {
    color: #0c5460;
    background: linear-gradient(135deg, #f0f8ff 0%, #d1ecf1 100%);
    border-color: #bee5eb;
}

.alert-box.info i {
    color: #17a2b8;
}

/* Form Styles */
.form-section {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e3df;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #67a552;
    box-shadow: 0 0 0 3px rgba(103, 165, 82, 0.1);
    background: #f8faf7;
}

.form-input:disabled {
    background: #f8faf7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Password Field with Toggle */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #67a552;
}

/* Form Row for side-by-side fields */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: metropolissemi_bold, sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #67a552 0%, #6eb057 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(103, 165, 82, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(103, 165, 82, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #6c757d;
    border: 2px solid #e0e3df;
}

.btn-secondary:hover {
    background: #f8faf7;
    border-color: #6c757d;
    color: #555;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Help Text */
.help-text {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e3df;
}

.help-text p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.help-text a {
    color: #67a552;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Security Notice */
.security-notice {
    margin: 40px 0 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ed 0%, #e8f7e3 100%);
    border-radius: 6px;
    text-align: center;
}

.notice-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #67a552;
    font-size: 14px;
}

.notice-content i {
    font-size: 18px;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e3df;
    border-top-color: #67a552;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    font-size: 14px;
    color: #6c757d;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e3df;
}

.divider span {
    padding: 0 20px;
    background: #fff;
    font-weight: 500;
}

/* Icon List */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e3df;
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list li i {
    color: #67a552;
    margin-right: 15px;
    font-size: 18px;
    width: 25px;
}

/* Checkbox/Radio Custom Styles */
.checkbox-wrapper,
.radio-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e3df;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.checkbox-wrapper:hover,
.radio-wrapper:hover {
    background: #f8faf7;
    border-color: #67a552;
}

.checkbox-wrapper input[type="checkbox"],
.radio-wrapper input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label,
.radio-wrapper label {
    cursor: pointer;
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* Table Styles (for login form) */
.form-table {
    width: 100%;
    margin: 20px 0;
}

.form-table td {
    padding: 10px 5px;
    vertical-align: middle;
}

.form-table .field-label {
    width: 35%;
    text-align: right;
    padding-right: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-table .field-input {
    width: 65%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .general-page {
        padding: 30px 20px 50px;
    }
}

@media (max-width: 991px) {
    .general-page {
        padding: 20px 15px 40px;
    }

    .general-container {
        max-width: 100%;
    }

    .card-body {
        padding: 25px 20px;
    }
}

@media (max-width: 767px) {
    .general-page {
        font-size: 14px;
    }

    .card-header {
        padding: 25px 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 30px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-subtitle {
        font-size: 14px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .form-row {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .form-table .field-label,
    .form-table .field-input {
        width: 100%;
        text-align: left;
        display: block;
    }

    .form-table .field-label {
        padding-right: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .general-page {
        padding: 15px 10px 30px;
    }

    .general-card {
        border-radius: 8px;
    }

    .alert-box {
        padding: 14px 18px;
        font-size: 14px;
    }

    .message-box {
        padding: 15px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

/* Print Styles */
@media print {
    .general-page {
        padding: 20px;
    }

    .general-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn,
    .button-group {
        display: none;
    }
}