@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary: #25d366;
    --primary-dark: #128c7e;
    --primary-light: #dcf8c6;
    --sidebar-bg: #1a1a2e;
    --sidebar-hover: #16213e;
    --sidebar-active: #25d366;
    --header-bg: #ffffff;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --header-height: 64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.header-username {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-logout {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.header-clock {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s;
    flex-shrink: 0;
}
.icon-btn svg {
    pointer-events: none;
    stroke: currentColor !important;
    fill: none !important;
    width: 18px !important;
    height: 18px !important;
    display: block;
    overflow: visible;
}
.icon-btn-warning {
    color: #92400e !important;
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
}
.icon-btn-warning:hover { background: #fde68a !important; }
.icon-btn-primary {
    color: #1e40af !important;
    background: #dbeafe !important;
    border-color: #60a5fa !important;
}
.icon-btn-primary:hover { background: #bfdbfe !important; }
.icon-btn-danger {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border-color: #f87171 !important;
}
.icon-btn-danger:hover { background: #fecaca !important; }

/* ============ SIDEBAR ============ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-height);
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.sidebar-brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.sidebar-brand-text span {
    color: var(--primary);
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    padding: 12px 12px 6px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 2px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav ul li a:hover {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
}

.sidebar-nav ul li a.active {
    background: var(--primary);
    color: #ffffff;
}

.sidebar-nav ul li a .nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-nav ul li a:hover .nav-icon,
.sidebar-nav ul li a.active .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-footer a:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.sidebar-footer a:first-child:hover {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
}

/* ============ LAYOUT ============ */
.wrapper {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 28px;
}

.container {
    max-width: 900px;
}

/* ============ PAGE HEADER ============ */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============ CARDS ============ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ============ DASHBOARD ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.green { background: rgba(37,211,102,0.12); }
.stat-icon.blue { background: rgba(59,130,246,0.12); }
.stat-icon.orange { background: rgba(245,158,11,0.12); }
.stat-icon.purple { background: rgba(139,92,246,0.12); }

.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.green svg { stroke: var(--primary); }
.stat-icon.blue svg { stroke: var(--info); }
.stat-icon.orange svg { stroke: var(--warning); }
.stat-icon.purple svg { stroke: #8b5cf6; }

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-icon {
    width: 32px;
    height: 32px;
    background: rgba(37,211,102,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.widget ul li a:hover { color: var(--primary-dark); }

.widget ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.1); color: var(--info); }
.badge-gray { background: rgba(107,114,128,0.1); color: var(--text-secondary); }

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.api-key-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--primary-dark);
    word-break: break-all;
    margin: 8px 0;
}

.api-key-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 8px;
}

.api-key-hint code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* ============ FORMS ============ */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}

textarea { resize: vertical; min-height: 120px; }

input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s;
}

input[type="file"]:hover {
    border-color: var(--primary);
}

/* ============ BUTTONS ============ */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary, button[type="submit"] {
    background: var(--primary);
    color: white;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

.btn-danger, .delete-button {
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
    padding: 7px 16px;
    font-size: 0.82rem;
}

.btn-danger:hover, .delete-button:hover {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
    padding: 9px 20px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ============ ALERTS ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.2);
}

.alert-error {
    background: rgba(239,68,68,0.08);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.2);
}

.alert-error a { color: var(--primary-dark); font-weight: 600; }

.message-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.message-status.success {
    display: block;
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.2);
}

.message-status.error {
    display: block;
    background: rgba(239,68,68,0.08);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.2);
}

/* ============ DEVICES ============ */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.device-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.device-card:hover {
    box-shadow: var(--shadow);
}

.device-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.device-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-avatar svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

.device-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.device-info small {
    font-size: 0.78rem;
    color: var(--text-light);
}

.device-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

/* ============ TABLES ============ */
.table-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: #f8fafc;
    padding: 12px 20px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }

tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.table-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.table-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--border);
    margin-bottom: 12px;
}

/* ============ QR CODE ============ */
.qr-wrapper {
    text-align: center;
    padding: 32px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.qr-wrapper img {
    max-width: 260px;
    border-radius: var(--radius-sm);
    border: 4px solid var(--primary);
    padding: 8px;
    background: white;
}

.qr-wrapper h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.qr-wrapper p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 320px;
    margin: 0 auto;
}

.qr-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
    max-width: 320px;
    text-align: left;
}

.qr-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.qr-step-num {
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f4c35 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.auth-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-logo-text span { color: var(--primary); }

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-card .auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.auth-card .form-group { margin-bottom: 18px; }

.auth-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    margin-top: 6px;
}

.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-footer-link a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ============ MODALS ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 20px 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}
.contact-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1.5px solid transparent;
}
.contact-check-item:hover { background: var(--body-bg); }
.contact-check-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.contact-check-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============ FOOTER ============ */
footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background: var(--header-bg);
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    stroke: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ============ LOADING ============ */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
