/* Dashboard Specific Styles */
.dashboard-container {
    padding-top: 100px;
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 600px;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.date-display i {
    color: var(--primary);
}

/* Search Section */
.search-section {
    margin-bottom: 50px;
}

.search-container {
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: var(--shadow);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background-color: var(--dark);
    border-radius: 15px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar i {
    color: var(--primary);
    font-size: 1.2rem;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 12px 0;
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--gray);
}

.search-bar input:focus {
    outline: none;
}

.search-bar .btn-primary {
    white-space: nowrap;
    padding: 12px 25px;
}

.filters-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.filter-group h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light);
}

.filter-group h4 i {
    color: var(--primary);
}

.platform-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: var(--dark);
    border: 2px solid var(--gray);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: bold;
}

.category-select {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Stats Section */
.stats-section {
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stat-card {
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin: 0;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    width: fit-content;
}

.stat-trend.up {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-trend.down {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.stat-trend i {
    font-size: 0.7rem;
}

.stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Products Section */
.products-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    margin-bottom: 0;
}

.section-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.section-actions .btn-secondary {
    padding: 12px 25px;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow);
}

.product-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid var(--dark);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--light);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--gray);
}

.product-menu-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-menu-btn:hover {
    color: var(--primary);
}

.product-card-body {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.current-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-change {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-change.up {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.price-change.up::before {
    content: '↑';
}

.price-change.down {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.price-change.down::before {
    content: '↓';
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.target-price, .savings {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.target-amount, .savings-amount {
    color: var(--light);
    font-weight: 600;
}

.savings-amount {
    color: var(--success);
}

.progress-section {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.progress-percentage {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #FFE44D);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.product-card-footer {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-action:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action i {
    font-size: 1.2rem;
}

.stop-tracking:hover {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    color: #EF4444;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    border: 2px dashed rgba(255, 215, 0, 0.2);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 25px;
    color: var(--light-gray);
}

/* Notifications Section */
.notifications-section {
    margin-bottom: 80px;
}

.notifications-container {
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
    width: 8px;
}

.notifications-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.notification-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--light);
}
.notification-text {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--gray);
}

.notification-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.notification-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.notification-btn.delete:hover {
    background-color: #EF4444;
    color: white;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .filters-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .product-card-footer {
        grid-template-columns: 1fr;
    }
    
    .btn-action {
        flex-direction: row;
        justify-content: center;
        padding: 10px;
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    .dashboard-container {
        padding-top: 80px;
    }
    
    .dashboard-header {
        padding: 30px 0;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .search-bar input {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-bar .btn-primary {
        width: 100%;
    }
    
    .platform-filters {
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .section-actions .btn-secondary {
        flex: 1;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-header {
        flex-wrap: wrap;
    }
    
    .product-info {
        min-width: calc(100% - 100px);
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .notification-item {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .notification-content {
        min-width: calc(100% - 100px);
    }
    
    .notification-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    .search-container {
        padding: 20px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .btn-action {
        font-size: 0.7rem;
    }
    
    .btn-action i {
        font-size: 1rem;
    }
}

/* Small Mobile - 320px and below */
@media (max-width: 320px) {
    .product-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-info {
        min-width: 100%;
    }
    
    .product-menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* ========== LOGOUT MODAL STYLES ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    width: 90%;
    max-width: 500px;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.modal-icon {
    font-size: 2rem;
    color: var(--primary);
    background-color: rgba(255, 215, 0, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--light);
    flex: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: var(--light-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--primary);
    padding: 15px;
    border-radius: 0 10px 10px 0;
    margin-top: 20px !important;
    color: var(--primary) !important;
    font-size: 0.95rem !important;
}

.modal-warning i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-footer button {
    min-width: 120px;
    padding: 12px 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-footer .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== TOAST NOTIFICATION STYLES ========== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.toast {
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-info {
    border-left-color: #3B82F6;
}

.toast.toast-error {
    border-left-color: #EF4444;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.toast-info .toast-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.toast-error .toast-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--light);
    font-weight: 600;
}

.toast-message {
    font-size: 0.9rem;
    margin: 0;
    color: var(--light-gray);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: var(--transition);
    align-self: flex-start;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform linear;
}

.toast-success .toast-progress-bar {
    background-color: var(--success);
}

.toast-info .toast-progress-bar {
    background-color: #3B82F6;
}

.toast-error .toast-progress-bar {
    background-color: #EF4444;
}

/* Responsive toast styles */
@media (max-width: 768px) {
    .toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
    
    .toast {
        max-width: none;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}