:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #1f6feb;
    --danger: #da3633;
    --success: #238636;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 20px;
}

h1 {
    margin: 0;
    color: var(--accent);
}

p {
    color: var(--text-muted);
    margin: 5px 0 0;
}

input {
    background: var(--bg-color);
    border: 1px solid #30363d;
    color: white;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    transition: background 0.2s;
}

#addForm button {
    background: var(--success);
    color: white;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.card-info code {
    color: var(--text-muted);
    font-family: monospace;
}

.btn-wake {
    background: var(--accent);
    color: white;
}

.btn-wake:hover {
    background: var(--accent-hover);
}

.btn-delete {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2em;
    padding: 5px 10px;
}

.btn-delete:hover {
    color: var(--danger);
}

.empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.btn-logout {
    color: var(--danger);
    text-decoration: none;
    border: 1px solid var(--danger);
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.9em;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

.status-badge {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.status-online {
    background: #238636;
    color: white;
}

.status-offline {
    background: #da3633;
    color: white;
}

.status-unknown {
    color: #8b949e;
}

/* Modal Styles - Premium Look */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(88, 166, 255, 0.1);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #8b949e;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #f85149;
}

#addForm input {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    padding: 12px;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#addForm input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
    outline: none;
}

.fab-add {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(31, 111, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    z-index: 999;
}

.fab-add:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 30px rgba(31, 111, 235, 0.6);
}