/* تنظیمات کلی صفحه */
:root {
    --bg: #F5FAFD;
    --primary: #2D9CDB;
    --primaryHover: #5AB9EA;
    --text: #1A1A1A;
    --subtext: #4F4F4F;
    --border: #D3E3EC;
    --section: #dcf1ff;
    --success: #27AE60;
    --error: #EB5757;
    --synapses: #90d7ff;
}


body {
    background-color: var(--bg);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    text-align: center;
    margin-top: 20px;
    position: relative;
    top: 4rem;
}

/* تنظیمات عنوان صفحه */
.title {
    color: var(--text);
    font-size: 3rem;
    /* بزرگ‌تر کردن متن عنوان */
    margin-bottom: 30px;
    font-weight: bold;
}

h2 {
    color: var(--text);
    /* رنگ متن سفید */
}


/* فرم و دکمه‌ها */
.upload-container {
    display: flex;
    justify-content: center;
    /* وسط‌چین کردن دکمه‌ها و آپلود */
    align-items: center;
    gap: 15px;
    /* فاصله بین عناصر فرم */
    margin-bottom: 30px;
}

input[type="file"] {
    font-size: 1rem;
}

button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    /* تغییر رنگ با اسکرول */
}

button:hover {
    background-color: var(--primaryHover);
}

.reset-btn {
    background-color: #ff4b5c;
    /* رنگ قرمز برای دکمه ریست */
}

.reset-btn:hover {
    background-color: #e04350;
}

/* تنظیمات تصویر */
img {
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 20px auto;
    /* فاصله و وسط‌چین کردن تصویر */
    max-width: 500px;
    /* حداکثر سایز تصویر */
    height: auto;
    /* نمایش تصویر در سایز اصلی */
    display: block;
}

/* کلاس پیش‌بینی */
#predictionResult {
    font-size: 1.2rem;
    color: #ffffff;
    margin-top: 10px;
    font-weight: bold;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    /* تمام صفحه را بگیرد */
    background-color: #1e375a;
    /* رنگ پس‌زمینه */
    z-index: -1;
    /* این عنصر باید در پشت سایر عناصر باشد */
}


/* login page property */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.logo-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Messages */
.messages-container {
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: shake 0.5s ease;
}

.message.error {
    background: #fed7d7;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.message i {
    font-size: 1.2rem;
}

.message ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #667eea;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #c53030;
}

.error-text {
    color: #c53030;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Password Field with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 93%;
    /* padding-right: 2.5rem; */
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

/* Submit Button */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.register-link p {
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}


/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }
}


.signup-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.signup-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.signup-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.signup-header p {
    color: #666;
    font-size: 0.9rem;
}

.logo-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Messages */
.messages-container {
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: shake 0.5s ease;
}

.message.error {
    background: #fed7d7;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.message.warning {
    background: #fef3c7;
    color: #d97706;
    border-left: 4px solid #d97706;
}

.message i {
    font-size: 1.2rem;
}

.message ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #667eea;
}

.form-group label .required {
    color: #e53e3e;
    font-size: 0.8rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #c53030;
}

/* Password Field with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #667eea;
}

/* Help Text */
.help-text {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.help-text i {
    font-size: 0.75rem;
}

/* Error Text */
.error-text {
    color: #c53030;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-text i {
    font-size: 0.75rem;
}

/* Password Requirements */
.password-requirements {
    background: #f7fafc;
    border-radius: 10px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.password-requirements p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
}

.password-requirements li {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.password-requirements li.valid {
    color: #38a169;
    text-decoration: line-through;
}

/* Submit Button */
.btn-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-signup:active {
    transform: translateY(0);
}

.btn-signup:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-link p {
    color: #666;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .signup-container {
        padding: 1rem;
    }

    .signup-card {
        padding: 1.5rem;
    }

    .signup-header h1 {
        font-size: 1.5rem;
    }
}






/* homePgae property */


.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('./doc_cam.png') 0 40%;
    background-size: cover;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Research Section */
.research-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.bar_of_things {
    max-width: 1200px;
    margin: 0 auto;
}

.bar_of_things h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.bar_of_things h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #667eea;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.research-item>div {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.img_1 {
    background-image: url('./p_segmer.jpg');
    background-color: #667eea;
    /* Fallback */
}

.img_2 {
    background-image: url('p_masker.jpg');
    background-color: #764ba2;
    /* Fallback */
}

.research-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #2c3e50;
}

.research-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Donate Section */
.donate-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.donate-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.donate-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.donate-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.donate-card p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.payment-methods {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 1rem 0;
}

.payment-methods.show {
    max-height: 500px;
    opacity: 1;
}

.payment-item {
    background: rgba(255, 255, 255, 0.15);
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-label {
    font-weight: bold;
    min-width: 80px;
}

.payment-address {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.payment-address:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-feedback {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: #4CAF50;
    border-radius: 5px;
    animation: fadeOut 2s forwards;
}

.donate-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

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

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    border-top: 1px solid #eee;
}

.site-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero::before {
        background: url('./doc_cam_vert.png') 0 40%;
        background-size: cover;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .payment-item {
        flex-direction: column;
        text-align: center;
    }
}



/* account property */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: moveDots 20s linear infinite;
}

@keyframes moveDots {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
}

.profile-details h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.profile-details p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.active {
    background: #48bb78;
    color: white;
}

.status-badge.inactive {
    background: #e53e3e;
    color: white;
}

.profile-email {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #667eea;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Subscription Card */
.subscription-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscription-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
}

.subscription-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.subscription-status.active {
    background: #c6f6d5;
    color: #22543d;
}

.subscription-status.inactive {
    background: #fed7d7;
    color: #c53030;
}

.subscription-details {
    margin-top: 1rem;
}

.subscription-info {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.subscription-info:last-child {
    border-bottom: none;
}

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

.info-value {
    color: #2c3e50;
}

.subscribe-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    color: white;
}

/* Points Card */
.points-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.points-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.points-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.points-max {
    font-size: 1rem;
    opacity: 0.8;
}

.points-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.points-progress-bar {
    background: white;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.points-info {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Recent Activity Placeholder */
.activity-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coming-soon {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
}

.coming-soon i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.coming-soon p {
    margin: 0;
}

/* Action Buttons */
.account-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.action-btn.secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.action-btn.danger {
    background: #fed7d7;
    color: #c53030;
}

.action-btn.danger:hover {
    background: #feb2b2;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .account-container {
        padding: 1rem;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-email {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .subscription-header {
        flex-direction: column;
        text-align: center;
    }

    .account-actions {
        flex-direction: column;
    }
}


/* pay accout */
.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.subscription-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subscription-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subscription-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Current Plan Card (if user has active subscription) */
.current-plan-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.current-plan-info h3 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.current-plan-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.current-plan-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.current-plan-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.expiry-date {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.plan-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border: 2px solid #667eea;
    transform: scale(1.02);
}

.plan-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 15px;
}

.plan-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    padding: 1.5rem;
    text-align: center;
}

.plan-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.price span {
    font-size: 1rem;
    color: #718096;
}

.description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.plan-body {
    padding: 1.5rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.features li {
    padding: 0.5rem 0;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features li i {
    color: #48bb78;
    font-size: 1.1rem;
}

/* PayPal Button Container */
.paypal-container {
    margin-top: 1rem;
}

.paypal-buttons {
    width: 100%;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
    text-align: center;
}

.faq-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: left;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h4 i {
    color: #667eea;
}

.faq-item p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-container {
        padding: 1rem;
    }

    .subscription-header h1 {
        font-size: 1.8rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.popular {
        transform: scale(1);
    }

    .plan-card.popular:hover {
        transform: translateY(-5px);
    }

    .current-plan-card {
        flex-direction: column;
        text-align: center;
    }

    .current-plan-status {
        text-align: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}


/* about us page */


.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.about-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    opacity: 0.2;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Main Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.about-text {
    line-height: 1.8;
    color: #333;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.about-image {
    text-align: center;
    /* position: sticky; */
    top: 2rem;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Mission & Vision Cards */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.mv-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mv-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.mv-card p {
    color: #666;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin-bottom: 4rem;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.team-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #667eea;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar i {
    font-size: 3rem;
    color: white;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.team-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #667eea;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    color: white;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item.ab {
    background: unset;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Technology Stack */
.tech-section {
    margin-bottom: 3rem;
}

.tech-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-badge {
    background: #f8f9fa;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .about-page {
        padding: 1rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        position: static;
        order: -1;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* classification page property */
.classification-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Upload Area */
.upload-area {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: #f0f0ff;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.upload-area p {
    color: #666;
    margin-bottom: 1rem;
}

.file-input-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.file-input-label i {
    margin-right: 0.5rem;
}

#imageInput {
    display: none;
}

/* Image Preview Section */
.preview-section {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h3 {
    margin: 0;
    color: #2c3e50;
}

.reset-preview {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.reset-preview:hover {
    transform: scale(1.1);
}

.image-preview-container {
    text-align: center;
    margin-bottom: 1rem;
}

#imagePreview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-info {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 1rem 0rem;
}

.predict-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.predict-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

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

/* Loading State */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
}

/* Results Section */
.results-section {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

.results-section.show {
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.result-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.result-header h3 {
    margin: 0;
    color: #2c3e50;
}

.result-class {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.class-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.class-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.class-value.adenomatous {
    color: #e53e3e;
}

.class-value.hyperplastic {
    color: #38a169;
}

/* Confidence Bar */
.confidence-section {
    margin: 1rem 0;
}

.confidence-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.confidence-bar {
    background: #e2e8f0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.confidence-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    transition: width 1s ease;
}

/* Action Buttons */
.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.new-prediction-btn {
    background: #667eea;
    color: white;
}

.new-prediction-btn:hover {
    background: #5a67d8;
}

.save-result-btn {
    background: #48bb78;
    color: white;
}

.save-result-btn:hover {
    background: #38a169;
}

/* Error Message */
.error-message {
    display: none;
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid #c53030;
    animation: shake 0.5s ease;
}

.error-message.show {
    display: block;
}

/* History Section */
.history-section {
    margin-top: 3rem;
}

.history-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.history-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.history-info {
    font-size: 0.9rem;
}

.history-class {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.history-date {
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .classification-container {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }
}




/* segmentation property */

.segmentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Upload Area */
.upload-area {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: #f0f0ff;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.upload-area p {
    color: #666;
    margin-bottom: 1rem;
}

.file-input-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.file-input-label i {
    margin-right: 0.5rem;
}

#imageInput {
    display: none;
}

/* Preview Section */
.preview-section {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h3 {
    margin: 0;
    color: #2c3e50;
}

.reset-preview {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.reset-preview:hover {
    transform: scale(1.1);
}

.image-preview-container {
    text-align: center;
    margin-bottom: 1rem;
}

#imagePreview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-info {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
}

.segment-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.segment-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

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

/* Results Section */
.results-section {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

.results-section.show {
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.result-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.result-header h3 {
    margin: 0;
    color: #2c3e50;
}

/* Image Comparison Grid */
.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.image-card {
    text-align: center;
}

.image-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.image-card img {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Metrics Section */
.metrics-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.metric-label {
    font-weight: bold;
    color: #4a5568;
}

.metric-value {
    color: #667eea;
    font-weight: bold;
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.new-segmentation-btn {
    background: #667eea;
    color: white;
}

.new-segmentation-btn:hover {
    background: #5a67d8;
}

.download-btn {
    background: #48bb78;
    color: white;
}

.download-btn:hover {
    background: #38a169;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
}

/* Error Message */
.error-message {
    display: none;
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid #c53030;
    animation: shake 0.5s ease;
}

.error-message.show {
    display: block;
}

/* Points Warning */
.warning-message {
    background: #fef3c7;
    color: #d97706;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .segmentation-container {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .image-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-actions {
        flex-direction: column;
    }
}