/* igw-memory.css */
.igw-memory-container {
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.igw-memory-container h1 {
    color: #00d4ff;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

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

.igw-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.igw-col {
    flex: 1;
    min-width: 300px;
}

.igw-card {
    background: rgba(20, 30, 40, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.igw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
}

.igw-card-header {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.igw-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

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

.igw-card-header h2 {
    color: #00d4ff;
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
}

.igw-card-body {
    padding: 20px;
}

.igw-metric {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.igw-metric:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.igw-metric strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.igw-metric-value {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 500;
}

.igw-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.igw-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #00d4ff 0%, #0096ff 100%);
    position: relative;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.igw-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.igw-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.igw-table th {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.igw-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.igw-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

.igw-table tr:last-child td {
    border-bottom: none;
}

.igw-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 10px;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.igw-badge-low { background: #00c853; color: white; }
.igw-badge-medium { background: #ff9800; color: white; }
.igw-badge-high { background: #f44336; color: white; }

.igw-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.igw-status-online { background: #4caf50; }
.igw-status-warning { background: #ff9800; }
.igw-status-critical { background: #f44336; }

.igw-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.igw-footer a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.igw-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .igw-col {
        min-width: 100%;
    }
    
    .igw-memory-container {
        padding: 10px;
    }
    
    .igw-card-header h2 {
        font-size: 1.1em;
    }
}

/* Loading animation */
.igw-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}