/* dashboard.css - استایل‌های داشبورد و نتایج */

/* کارت نتایج */
.result-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* برچسب انرژی */
.energy-label {
    padding: 20px;
    border-radius: 15px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.label-a { 
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white; 
    border: 3px solid #1e7e34;
}

.label-b { 
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white; 
    border: 3px solid #138496;
}

.label-c { 
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529; 
    border: 3px solid #d39e00;
}

.label-d { 
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
    color: white; 
    border: 3px solid #c82333;
}

.label-e { 
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: white; 
    border: 3px solid #a71d2a;
}

/* وضعیت مصرف */
.energy-status {
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.status-excellent {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b1dfbb;
}

.status-good {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #abdde5;
}

.status-normal {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #ffeaa7;
}

.status-warning {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f1b0b7;
}

.status-bad {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #bd2130;
}

/* متر مصرف */
.consumption-meter {
    height: 25px;
    border-radius: 12px;
    background: linear-gradient(90deg, 
        #28a745 0%, 
        #5cb85c 20%, 
        #ffc107 40%, 
        #f0ad4e 60%, 
        #d9534f 80%, 
        #dc3545 100%);
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.meter-pointer {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 45px;
    background-color: #212529;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: left 1s ease-in-out;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: bold;
}

/* کارت‌های جزئیات */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-left: 10px;
    font-size: 1.5rem;
}

/* جدول پیشنهادات */
.table {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: scale(1.01);
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-color: #e9ecef;
}

/* بدج‌های اطلاعات */
.badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 500;
}

.list-group-item {
    border: none;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px !important;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #e9ecef;
    transform: translateX(-5px);
}

/* نمودارها */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* دکمه‌های اکشن */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-lg {
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-lg i {
    font-size: 1.3rem;
}

/* انیمیشن‌های خاص */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* دکمه اشتراک */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-telegram { background-color: #0088cc; }
.share-whatsapp { background-color: #25d366; }
.share-twitter { background-color: #1da1f2; }
.share-copy { background-color: #6c757d; }

/* آیکون‌های وضعیت */
.status-icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

.status-excellent .status-icon { color: #28a745; }
.status-good .status-icon { color: #17a2b8; }
.status-normal .status-icon { color: #ffc107; }
.status-warning .status-icon { color: #fd7e14; }
.status-bad .status-icon { color: #dc3545; }
/* استایل‌های تحلیل هوش مصنوعی */
.ai-suggestion {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ai-suggestion:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-suggestion strong {
    color: #007bff;
    font-size: 1.1rem;
}

.ai-analysis-result {
    animation: fadeIn 0.8s ease-out;
}

.analysis-summary {
    border-right: 4px solid #007bff;
}

/* انیمیشن بارگذاری */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-ai {
    animation: pulse 1.5s infinite;
}

/* آیکون‌های تحلیل */
.ai-icon {
    font-size: 1.2rem;
    margin-left: 8px;
    vertical-align: middle;
}
/* استایل‌های تحلیل هوش مصنوعی */
.ai-suggestion-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff !important;
    transition: all 0.3s ease;
}

.ai-suggestion-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.analysis-content {
    font-size: 1.05rem;
    color: #333;
}

.analysis-content strong {
    font-weight: 600;
}

.analysis-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* انیمیشن بارگذاری */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-ai {
    animation: pulse 1.5s infinite;
}

/* دکمه تحلیل */
#aiAnalysisBtn {
    transition: all 0.3s ease;
    padding: 12px 40px;
    font-size: 1.1rem;
}

#aiAnalysisBtn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

#aiAnalysisBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}