/* TAGiD Theme-Based Containers & Messages */

/* Base Theme Container */
.theme-container {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    line-height: 1.6;
}

.theme-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: var(--theme-accent-color);
}

/* Success Theme Container */
.theme-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
    --theme-accent-color: #28a745;
}

.theme-success .theme-icon {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Error/Danger Theme Container */
.theme-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
    --theme-accent-color: #dc3545;
}

.theme-error .theme-icon {
    color: #dc3545;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Warning Theme Container */
.theme-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
    --theme-accent-color: #ffc107;
}

.theme-warning .theme-icon {
    color: #ffc107;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Info Theme Container */
.theme-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
    --theme-accent-color: #17a2b8;
}

.theme-info .theme-icon {
    color: #17a2b8;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Primary Theme Container */
.theme-primary {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    color: #004085;
    border-left: 4px solid #007bff;
    --theme-accent-color: #007bff;
}

.theme-primary .theme-icon {
    color: #007bff;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Secondary Theme Container */
.theme-secondary {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border-left: 4px solid #6c757d;
    --theme-accent-color: #6c757d;
}

.theme-secondary .theme-icon {
    color: #6c757d;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* GPS/Tracking Theme Container */
.theme-gps {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edd4 100%);
    color: #2d5a2d;
    border-left: 4px solid #28a745;
    --theme-accent-color: #28a745;
}

.theme-gps .theme-icon {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Security/Lost-Stolen Theme Container */
.theme-security {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
    --theme-accent-color: #dc3545;
}

.theme-security .theme-icon {
    color: #dc3545;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Premium/Subscription Theme Container */
.theme-premium {
    background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
    --theme-accent-color: #ffc107;
}

.theme-premium .theme-icon {
    color: #ffc107;
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Content Styling */
.theme-container .theme-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.theme-container .theme-content {
    margin: 0;
    opacity: 0.9;
}

.theme-container .theme-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.theme-container .theme-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-container .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Action Button Variants */
.theme-btn-primary {
    background: #007bff;
    color: white;
}

.theme-btn-secondary {
    background: #6c757d;
    color: white;
}

.theme-btn-success {
    background: #28a745;
    color: white;
}

.theme-btn-danger {
    background: #dc3545;
    color: white;
}

.theme-btn-warning {
    background: #ffc107;
    color: #212529;
}

.theme-btn-outline {
    background: transparent;
    border: 2px solid var(--theme-accent-color);
    color: var(--theme-accent-color);
}

/* Dismissible Containers */
.theme-container.theme-dismissible {
    padding-right: 3rem;
}

.theme-container .theme-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.theme-container .theme-close:hover {
    opacity: 1;
}

/* Compact Size Variant */
.theme-container.theme-compact {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.theme-container.theme-compact .theme-title {
    font-size: 1em;
    margin-bottom: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-container {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .theme-container .theme-actions {
        flex-direction: column;
    }
    
    .theme-container .theme-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Animation Effects */
@keyframes themeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-container.theme-animated {
    animation: themeSlideIn 0.4s ease-out;
}

/* Loading State */
.theme-container.theme-loading {
    position: relative;
    overflow: hidden;
}

.theme-container.theme-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: themeShimmer 1.5s infinite;
}

@keyframes themeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Status Indicators */
.theme-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.theme-status-online { background: #28a745; }
.theme-status-offline { background: #dc3545; }
.theme-status-warning { background: #ffc107; }
.theme-status-pending { background: #6c757d; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .theme-container {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .theme-success {
        background: linear-gradient(135deg, #1e4620 0%, #2d5a2d 100%);
        color: #9fdf9f;
    }
    
    .theme-error {
        background: linear-gradient(135deg, #4a1e1e 0%, #5a2d2d 100%);
        color: #ff9999;
    }
    
    .theme-warning {
        background: linear-gradient(135deg, #4a3c1e 0%, #5a4a2d 100%);
        color: #ffdd99;
    }
    
    .theme-info {
        background: linear-gradient(135deg, #1e3a4a 0%, #2d4a5a 100%);
        color: #99ddff;
    }
    
    .theme-primary {
        background: linear-gradient(135deg, #1e2a4a 0%, #2d3a5a 100%);
        color: #99ccff;
    }
    
    .theme-secondary {
        background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
        color: #cccccc;
    }
}