/* Monitor Specific Styles */
.monitor-section {
    padding: 40px 20px;
    background-color: var(--light-color);
    min-height: 100vh;
}

.monitor-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

/* Connection Panel */
.connection-panel {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.connection-panel h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.connection-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.connection-status {
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

.connection-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.connection-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Dashboard Grid */
.dashboard {
    display: none;
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.monitor-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.monitor-card:hover {
    transform: translateY(-5px);
}

.monitor-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* System Info */
.info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 5px;
}

.info-item .label {
    font-weight: 600;
    color: var(--dark-color);
}

.info-item .value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Resource Usage */
.resource-item {
    margin-bottom: 20px;
}

.resource-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.progress-bar {
    width: 100%;
    height: 25px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.percentage {
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Interface List */
.interface-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interface-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.interface-item.disabled {
    opacity: 0.6;
    border-left-color: #999;
}

.interface-item.running {
    border-left-color: #28a745;
}

.interface-name {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.interface-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
}

.detail {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: var(--primary-color);
}

/* Traffic Stats */
.traffic-stats {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 0.9rem;
}

.stat-box {
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.stat-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Queue List */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.queue-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.queue-name {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.queue-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    font-size: 0.85rem;
}

/* Wireless List */
.wireless-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.wireless-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    border-top: 3px solid var(--primary-color);
}

.wireless-name {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wireless-signal {
    display: flex;
    gap: 5px;
    font-size: 1.2rem;
}

.signal-bar {
    width: 5px;
    height: 20px;
    background-color: #ccc;
    border-radius: 2px;
}

.signal-bar.active {
    background-color: #28a745;
}

.wireless-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.wireless-detail {
    display: flex;
    justify-content: space-between;
}

/* Control Panel */
.control-panel {
    margin-top: 30px;
}

.control-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Auto Refresh */
.auto-refresh {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.auto-refresh label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.auto-refresh input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .monitor-title {
        font-size: 2rem;
    }

    .connection-form {
        grid-template-columns: 1fr;
    }

    .monitor-grid {
        grid-template-columns: 1fr;
    }

    .traffic-stats {
        grid-template-columns: 1fr;
    }

    .interface-details,
    .queue-details,
    .wireless-detail {
        grid-template-columns: 1fr;
    }

    .control-buttons {
        grid-template-columns: 1fr;
    }

    .wireless-list {
        grid-template-columns: 1fr;
    }
}
