.dadmelk-ai-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: "IranYekanX", DANA, Tahoma, Arial, sans-serif;
}

.dadmelk-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.dadmelk-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.dadmelk-header .description {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.dadmelk-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.dadmelk-form .form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-area:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.uploaded-files-list {
    margin-top: 15px;
}

.uploaded-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 5px;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.rate-limit-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin: 20px 0;
    text-align: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: 0 none !important;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #052948;
    color: white !important;
}

.btn-large {
    padding: 15px 40px !important;
    font-size: 18px !important;
    width: 100% !important;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-container {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.results-header h3 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 22px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-card.success-probability {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.summary-card.duration {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.summary-card.confidence {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.summary-card.appeal {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.card-header h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-description {
    font-size: 12px;
    opacity: 0.8;
}

.analysis-details {
    margin-top: 30px;
}

.detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #667eea;
}

.detail-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.cost-estimates {
    display: grid;
    gap: 15px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cost-item strong {
    color: #333;
}

.cost-item span {
    color: #667eea;
    font-weight: bold;
}

.strategies-tabs {
    display: flex;
    margin-bottom: 20px;
    background: #e9ecef;
    border-radius: 10px;
    padding: 5px;
}

.strategy-tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.strategy-tab.active {
    background: #667eea;
    color: white;
}

.strategy-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.strategy-content.active {
    display: block;
}

.strategy-description {
    margin-bottom: 20px;
}

.strategy-description h5 {
    margin-bottom: 10px;
    color: #333;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros h6, .cons h6 {
    margin-bottom: 10px;
    font-size: 16px;
}

.pros ul, .cons ul {
    margin: 0;
    padding-right: 20px;
}

.pros li, .cons li {
    margin-bottom: 5px;
}

.key-factors, .assumptions {
    margin: 0;
    padding-right: 20px;
}

.key-factors li, .assumptions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.disclaimer-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.disclaimer h4 {
    margin-top: 0;
    color: #856404;
}

.disclaimer p {
    margin-bottom: 0;
    color: #856404;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-top: 30px;
}

.cta-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.dadmelk-notification {
    /*background: transparent !important;*/
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dadmelk-notification.show {
    transform: translateX(0);
}

.dadmelk-notification-success {
    background: #28a745;
}

.dadmelk-notification-error {
    background: #dc3545;
}

.dadmelk-notification-warning {
    background: #ffc107;
    color: #333;
}

.dadmelk-notification-info {
    background: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    float: left;
    margin-right: -5px;
    margin-top: -2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dadmelk-ai-container {
        padding: 15px;
    }

    .dadmelk-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .strategies-tabs {
        flex-direction: column;
    }

    .dadmelk-notification {
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
    }

    .dadmelk-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .dadmelk-header h2 {
        font-size: 20px;
    }

    .form-section, .results-container {
        padding: 20px;
    }

    .card-value {
        font-size: 24px;
    }
}