/* Modern Dark Cyberpunk Theme for Dasha Robot Kuromi (v1.2) */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-pink: #f43f5e;
    --accent-purple: #a855f7;
    --accent-blue: #38bdf8;
    --accent-green: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    padding: 24px 16px;
    background-image: 
        radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.12) 0px, transparent 50%);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.robot-avatar {
    font-size: 38px;
    background: linear-gradient(135deg, #1e1b4b, #3b0764);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(to right, #f43f5e, #c084fc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
}

.status-online {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(6, 78, 59, 0.3);
}

.status-online .dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.stat-icon {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.05);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info h3 {
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(8px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

textarea, input[type="text"], input[type="time"], .custom-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

textarea:focus, input:focus, .custom-select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.btn-secondary {
    background: #334155;
    color: #fff;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-purple);
}

/* Direct IP Panel */
.ip-control-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ip-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.ip-inputs {
    display: flex;
    gap: 8px;
}

.ip-inputs input {
    width: 150px;
    padding: 6px 10px;
    font-size: 12px;
}

.ip-status-text {
    font-size: 11px;
    color: #94a3b8;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.btn-action {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-action .btn-icon {
    font-size: 24px;
}

.action-feedback {
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
    text-align: center;
}

/* Voice tips list */
.voice-tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    background: rgba(15, 23, 42, 0.5);
    border-left: 3px solid var(--accent-pink);
    padding: 10px 14px;
    border-radius: 4px 8px 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tip-phrase {
    font-weight: 600;
    font-size: 14px;
    color: #fca5a5;
}

.tip-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Messages List */
.messages-list-wrapper h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 20px 0 12px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 260px;
    overflow-y: auto;
}

.message-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
}

.message-card.pending {
    border-left: 4px solid #f59e0b;
}

.message-card.delivered {
    border-left: 4px solid #10b981;
    opacity: 0.8;
}

.message-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.badges-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.badge-delivered {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.badge-action {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

/* Reminders */
.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row input[type="time"] {
    width: 110px;
}

.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.reminder-time {
    font-weight: 600;
    color: var(--accent-blue);
}

.btn-delete {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
}

/* Events Log */
.btn-refresh {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.events-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.event-item {
    background: var(--bg-input);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.event-type {
    font-weight: 600;
    color: var(--accent-purple);
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}
