/* ================================================
   Branding CSS - iDesk NetManager Professional Theme
   All inline styles moved here for better organization
   ================================================ */

/* iDeskHubs Professional Color Variables */
:root {
    --ideskr-primary: #00d4aa;
    --ideskr-secondary: #667eea;
    --ideskr-accent: #764ba2;
    --ideskr-dark: #1a202c;
    --ideskr-light: #f7fafc;
}

/* ================================================
   Header Branding Enhancements
   ================================================ */

/* Header Enhancement */
.header {
    position: fixed;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ideskr-primary), var(--ideskr-secondary), var(--ideskr-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* ================================================
   Connection Status Indicator
   ================================================ */

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.connecting {
    background-color: #f59e0b;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-dot.connected {
    background-color: var(--ideskr-primary);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

.status-dot.error,
.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-dot.warning {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-text {
    color: white;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1);
    }
}

/* ================================================
   Professional Footer
   ================================================ */

.footer {
    background: linear-gradient(135deg, var(--ideskr-dark) 0%, #2d3748 100%);
    color: white;
    padding: 0.85rem 0;
    margin-top: 0;
    border-top: 3px solid var(--ideskr-primary);
    position: relative;
    margin-left: 220px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ideskr-primary), transparent);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.footer-left p {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-powered {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--ideskr-primary);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
}

.footer-brand-link:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.footer-brand-icon {
    font-size: 0.6rem;
    color: var(--ideskr-primary);
    filter: drop-shadow(0 0 3px rgba(0, 212, 170, 0.4));
}

.footer-right {
    text-align: right;
}

.footer-tagline {
    color: #64748b;
    font-style: italic;
    font-size: 0.75rem;
}

/* ================================================
   Loading Screen Enhancement
   ================================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ideskr-secondary) 0%, var(--ideskr-accent) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.loading-screen.show {
    opacity: 1;
    visibility: visible;
}

.loading-logo {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: loadingPulse 2s infinite;
}

.loading-text {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.loading-subtext {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    text-align: center;
}

.loading-brand {
    position: absolute;
    bottom: 3rem;
    color: var(--ideskr-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 212, 170, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 212, 170, 0.8), 0 0 40px rgba(0, 212, 170, 0.6); }
}

/* ================================================
   Notification Style Enhancements
   ================================================ */

.notification.success {
    background: linear-gradient(135deg, var(--ideskr-primary), #00b894);
    border-left: 4px solid #00a085;
}

.notification.info {
    background: linear-gradient(135deg, var(--ideskr-secondary), var(--ideskr-accent));
    border-left: 4px solid var(--ideskr-secondary);
}

/* ================================================
   Stats Card Enhancement
   ================================================ */

.stat-card::before {
    background: linear-gradient(90deg, var(--ideskr-primary), var(--ideskr-secondary));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 212, 170, 0.1);
}

/* ================================================
   Vessel Card Refresh Animation
   ================================================ */

.vessel-refresh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    z-index: 10;
}

.refresh-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--ideskr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

.refresh-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.vessel-card.refreshing {
    position: relative;
    overflow: hidden;
}

.vessel-card.refreshing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 170, 0.2),
        transparent
    );
    animation: refreshShimmer 1.5s infinite;
}

@keyframes refreshShimmer {
    100% {
        left: 100%;
    }
}

/* ================================================
   Enhanced Button Styles
   ================================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--ideskr-primary) 0%, #00b894 100%);
    border-color: var(--ideskr-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn.active {
    background: var(--ideskr-primary);
    color: white;
    border-color: var(--ideskr-primary);
}

/* ================================================
   Form Enhancement
   ================================================ */

.form-control:focus {
    border-color: var(--ideskr-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ================================================
   Progress Bar Enhancement
   ================================================ */

.progress-bar.success {
    background: linear-gradient(90deg, var(--ideskr-primary), #00b894);
}

.progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.progress-bar.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ================================================
   Badge Enhancements
   ================================================ */

.badge-success {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--ideskr-primary);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

/* ================================================
   Modal Enhancement
   ================================================ */

.modal-content {
    border: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 25px 50px rgba(0, 212, 170, 0.1);
}

.modal-header {
    border-bottom-color: rgba(0, 212, 170, 0.1);
}

/* ================================================
   Mobile Responsive Adjustments
   ================================================ */

@media (max-width: 991px) {
    .footer {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .brand-section {
        text-align: center;
    }
    
    .tech-items {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .loading-logo {
        font-size: 4rem;
    }
    
    .loading-text {
        font-size: 1.4rem;
    }
    
    .connection-status {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }
    
    .status-text {
        font-size: 0.7rem;
    }
}

/* ================================================
   Dark Mode Support
   ================================================ */

@media (prefers-color-scheme: dark) {
    .vessel-refresh-overlay {
        background: rgba(30, 41, 59, 0.9);
    }
    
    .refresh-text {
        color: #cbd5e1;
    }
    
    .loading-screen {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
}

/* ================================================
   Print Styles
   ================================================ */

@media print {
    .loading-screen,
    .connection-status,
    .footer {
        display: none !important;
    }
    
    .header::after {
        display: none;
    }
}

/* ================================================
   Accessibility Enhancements
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .loading-logo,
    .loading-brand,
    .header::after,
    .status-dot.connecting,
    .refresh-spinner,
    .vessel-card.refreshing::after {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .brand-link {
        text-shadow: none;
    }
    
    .status-dot {
        border: 2px solid currentColor;
    }
    
    .tech-item {
        border-width: 2px;
    }
}