/* Project Aqua - Dark Mode with Glowing Edges */
/* Location: /home/xilian/.openclaw/workspace/aqua_dev/public/css/style.css */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --primary: #64ffda; /* Aquamarine/Cyan glow */
    --secondary: #00a8e8;
    --danger: #ff4d4d;
    --success: #2a9d8f;
    --dark: #0a192f;    /* Deep Navy Background */
    --light-dark: #112240; /* Card Background */
    --text-main: #ccd6f6; /* Light grey-blue text */
    --text-dim: #8892b0;  /* Dimmed text */
    --bg: #0a192f;
    --card-bg: #112240;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(180deg, #112240 0%, #0a192f 100%);
    color: var(--primary);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

header p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

main {
    padding-bottom: 50px;
}

h2 {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.8rem;
    display: block;
}

/* Tank Grid */
.tank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@keyframes rotate {
    to { --angle: 360deg; }
}

/* Reusable Glowing Card - Ultra-thin & Professional (Updated via user suggestion) */
.glow-card {
    background: 
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        conic-gradient(from var(--angle, 0deg), transparent, var(--primary) 10%, transparent 20%) border-box;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    animation: rotate 8s linear infinite;
}

.glow-card:hover {
    transform: translateY(-5px);
}

/* Glow for warning/error cards */
.glow-card-warning {
    background: 
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        conic-gradient(from var(--angle, 0deg), transparent, var(--danger) 10%, transparent 20%) border-box;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    animation: rotate 8s linear infinite;
}

.glow-card-warning:hover {
    transform: translateY(-5px);
}

/* Inline Warning List */
.warning-list-inline {
    margin-top: 15px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid var(--danger);
}

.warning-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--danger);
    margin-bottom: 8px;
}

.warning-list-inline ul {
    list-style: none;
    padding-left: 0;
}

.warning-list-inline li {
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.tank-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.tank-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.tank-size {
    font-size: 0.8rem;
    background: rgba(100, 255, 218, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--primary);
}

.tank-status {
    margin: 20px 0;
    font-weight: bold;
}

.status-ok {
    color: var(--success);
}

.warning-count {
    color: var(--danger);
}

.tank-actions {
    margin-top: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    width: 100%;
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .tank-grid { grid-template-columns: 1fr; }
}
