/* Service Control Panel Styles */
.service-control-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.service-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-hero .text-muted {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem;
}

/* Service Cards */
.service-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card-critical {
    border: 2px solid #dc3545;
}

.service-card-header {
    padding: 15px 20px;
    color: white;
    font-weight: 600;
}

.service-card-header.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.service-card-header.bg-secondary {
    background: linear-gradient(135deg, #606c88 0%, #3f4c6b 100%) !important;
}

.service-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Status Section */
.status-section {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

.status-running {
    background: #d4edda;
    color: #155724;
}

.status-stopped {
    background: #f8d7da;
    color: #721c24;
}

/* Service Details */
.service-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #6c757d;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.action-form {
    flex: 1;
}

.action-form-full {
    width: 100%;
}

.btn-action {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-stop {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245,87,108,0.4);
}

.btn-restart {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252,182,159,0.4);
}

.btn-start {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168,237,234,0.4);
}

/* Info Card */
.info-card {
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
    background: #e7f7fa;
}

/* Feature Status Section */
.feature-status-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.feature-status-header h4 {
    margin: 0 0 10px 0;
    font-weight: 700;
}

.feature-status-header .text-muted {
    color: rgba(255,255,255,0.9) !important;
    margin: 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-active {
    border-left: 4px solid #28a745;
}

.feature-inactive {
    border-left: 4px solid #dc3545;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-active .feature-icon {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.feature-inactive .feature-icon {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.feature-status {
    margin-bottom: 5px;
}

.feature-status .badge {
    font-size: 0.8rem;
    padding: 4px 10px;
}

.feature-message {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        padding: 20px;
    }
    
    .service-hero h2 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
}
