:root {
    --primary-green: #A6ED39;
    --primary-blue: #1EC5E5;
    --accent-orange: #FF8C42;
    --charcoal: #2C2C2C;
    --soft-white: #F9F9F9;
    --light-grey: #E6E6E6;
    --radius-2xl: 1rem;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--soft-white);
    color: var(--charcoal);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

/* Utilities */
.hidden { display: none !important; }
.active { display: flex !important; }
.mt-4 { margin-top: 1rem; }

/* Layout */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

#login-view {
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-grey);
    border-radius: 0.5rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 197, 229, 0.2);
}

.inline-form {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-2xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--charcoal);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-danger {
    background-color: #ef4444;
    color: #fff;
}

/* Dashboard Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.disk-space {
    font-weight: 600;
    color: var(--accent-orange);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 2fr;
    }
}

/* Lists */
.token-item, .device-item {
    background: var(--soft-white);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--light-grey);
}

.token-info code {
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.device-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-online { background-color: var(--primary-green); }
.status-offline { background-color: #ef4444; }

.error-text {
    color: #ef4444;
    margin-top: 1rem;
    font-size: 0.875rem;
}
