:root {
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00d2ff;
    --bg-dark: #0f111a;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* For absolute positioning of status light */
}

/* Status Light (Corner) */
.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #555;
    transition: all 0.3s ease;
    z-index: 1000;
}

.status-indicator.active {
    background-color: #2ed573;
    box-shadow: 0 0 15px #2ed573;
    animation: pulse-green 2s infinite;
}

.status-indicator.inactive {
    background-color: #ff4757;
    box-shadow: 0 0 15px #ff4757;
    animation: pulse-red 1s infinite;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    background: #7000ff;
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: #0048ff;
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    background: #ff0055;
    width: 350px;
    height: 350px;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    margin-bottom: 2rem;
    text-align: center;
}

h1 {
    font-weight: 700;
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 300;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    margin-left: 5px;
}

.status-msg {
    margin-top: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Charts */
.chart-container {
    height: 80px;
    margin-top: auto;
    width: 100%;
}

/* Dots */
.activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
    transition: all 0.3s ease;
}

.activity-dot.active {
    background-color: #2ed573;
    box-shadow: 0 0 10px #2ed573;
    animation: pulse-green 2s infinite;
}

.activity-dot.inactive {
    background-color: #ff4757;
    box-shadow: 0 0 10px #ff4757;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.developer-credit {
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.dev-name {
    font-weight: 700;
    color: #fff;
}

.settings-link {
    margin-top: 15px;
}

.settings-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.settings-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Form Card */
.form-card {
    max-width: 400px;
    margin: 0 auto;
}

.center-content {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}