/* ===== Base ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #e6f4ea, #f5fffa);
    color: #333;
}

h2 {
    color: #2e7d32;
    font-weight: 600;
}

/* ===== Card Styling ===== */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

.card-header {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Gradient Headers ===== */
.bg-primary {
    background: linear-gradient(90deg, #388e3c, #66bb6a) !important;
}

.bg-secondary {
    background: linear-gradient(90deg, #2e7d32, #81c784) !important;
}

.bg-info {
    background: linear-gradient(90deg, #43a047, #a5d6a7) !important;
}

.bg-warning {
    background: linear-gradient(90deg, #f9a825, #ffe082) !important;
    color: #333 !important;
}

.bg-success {
    background: linear-gradient(90deg, #1b5e20, #4caf50) !important;
}

/* ===== Form Inputs ===== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    transition: border 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #66bb6a;
    box-shadow: 0 0 0 0.2rem rgba(102, 187, 106, 0.25);
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(to right, #2e7d32, #66bb6a);
    border: none;
    padding: 10px 24px;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #1b5e20, #4caf50);
}

/* ===== Alert Status ===== */
#connectionAlert {
    border-left: 5px solid #4caf50;
    background-color: #e8f5e9;
}

/* ===== Badge ===== */
#connectionStatus {
    font-size: 0.9rem;
    padding: 0.4em 0.7em;
}

/* ===== Checkboxes & Radios ===== */
.form-check-input:checked {
    background-color: #43a047;
    border-color: #43a047;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* ===== Custom Icons ===== */
.card-header::before {
    content: attr(data-icon);
    font-family: "Bootstrap-icons";
    font-weight: normal;
    font-style: normal;
    margin-right: 8px;
}

/* Add icons to each section via data-icon */
.card-header[data-icon]::before {
    font-size: 1.2rem;
}


.icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #256029, #1b4d1b); /* fallback for success */
}

.bg-primary {
    background: linear-gradient(135deg, #1a3f2a, #157347) !important;
}

.bg-success {
    background: linear-gradient(135deg, #256029, #198754) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #a31919, #dc3545) !important;
}



/* ===== Mobile Adjustments ===== */
@media (max-width: 768px) {
    .btn-lg {
        font-size: 1rem;
        padding: 8px 20px;
    }

    .form-check-inline {
        display: block;
        margin-bottom: 6px;
    }
}
