/* style.css v1.0.6 */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-dark: #111827;
    --bg-light: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 8px;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-light); color: var(--text-main); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; text-decoration: none; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-danger { background-color: #ef4444; color: white; }
.btn-danger:hover { background-color: #dc2626; }
.btn-secondary { background-color: white; border-color: var(--border); color: var(--text-main); }
.btn-secondary:hover { background-color: #f9fafb; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.875rem; color: #374151; }
.form-control { width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.875rem; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background-color: var(--bg-dark); color: white; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { height: 60px; display: flex; align-items: center; padding: 0 1.5rem; font-weight: bold; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.main-content { flex: 1; display: flex; flex-direction: column; }
.top-bar { height: 60px; background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; }
.page-content { padding: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }

/* Grid Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.server-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.server-card::before { content:''; height: 4px; background: var(--primary); width: 100%; position: absolute; top:0; left:0; }
.server-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sc-header { display: flex; justify-content: space-between; align-items: center; }
.sc-title { font-weight: bold; font-size: 1.1rem; }
.sc-badge { background: #dbeafe; color: #1e40af; font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.sc-details { font-size: 0.85rem; color: var(--text-muted); background: #f9fafb; padding: 0.75rem; border-radius: 6px; line-height: 1.6; }
.sc-actions { display: flex; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); gap: 10px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s; }
.modal { background: white; width: 90%; max-width: 500px; border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.25rem; border-bottom: 1px solid var(--border); font-weight: bold; font-size: 1.1rem; display: flex; justify-content: space-between; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; background: #f9fafb; border-top: 1px solid var(--border); text-align: right; }

/* Auth Card & Setup Card */
.auth-card { background: white; width: 320px; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; animation: slideUp 0.3s; }
.auth-card-header { background: var(--bg-dark); padding: 1.5rem; text-align: center; color: white; }
.auth-card-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.auth-card-body { padding: 1.5rem; }
.auth-card-footer { padding: 1rem 1.5rem; background: #f9fafb; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

.setup-card { background: white; width: 100%; max-width: 500px; padding: 2.5rem; border-radius: 12px; box-shadow: var(--shadow-lg); margin: 2rem; }

/* Login Page */
.login-wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; background: #eef2ff; }
.login-box { background: white; padding: 2.5rem; border-radius: 12px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }