/* ============================================================
   SERVIDOR DE LICENÇAS — CSS
   ============================================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

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

/* NAVBAR */
.navbar {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand { font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 16px; }
.nav-links a { color: #888; text-decoration: none; font-size: 14px; padding: 4px 8px; border-radius: 4px; }
.nav-links a:hover, .nav-links a.active { color: #f2b90d; background: rgba(242,185,13,0.1); }

/* CARDS */
.card {
    background: #151515;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: #151515; border: 1px solid #222; border-radius: 8px; padding: 16px; text-align: center; }
.stat-number { font-size: 32px; font-weight: 700; color: #f2b90d; }
.stat-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.stat-success .stat-number { color: #22c55e; }
.stat-danger { border-color: #ef4444; }
.stat-danger .stat-number { color: #ef4444; }

/* TABLES */
.table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #1a1a1a; font-size: 13px; }
.table th { color: #888; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; background: #111; }
.table tr:hover { background: rgba(242,185,13,0.03); }
.row-danger { background: rgba(239,68,68,0.1) !important; }

/* BADGES */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-active { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-suspended { background: rgba(234,179,8,0.15); color: #eab308; }
.badge-revoked, .badge-expired { background: rgba(239,68,68,0.15); color: #ef4444; }

/* FORMS */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; color: #888; margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 8px 12px; background: #1a1a1a; border: 1px solid #333; border-radius: 6px;
    color: #e0e0e0; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #f2b90d; outline: none;
}
.form-group input[type="color"] { width: 60px; height: 36px; padding: 2px; cursor: pointer; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
code { background: #1a1a1a; padding: 2px 6px; border-radius: 3px; font-size: 12px; color: #f2b90d; word-break: break-all; }

/* BUTTONS */
.btn {
    display: inline-block; padding: 8px 16px; border: none; border-radius: 6px;
    font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; color: #fff;
    background: #333; transition: all 0.2s;
}
.btn:hover { background: #444; }
.btn-primary { background: #f2b90d; color: #000; }
.btn-primary:hover { background: #d4a00a; }
.btn-success { background: #22c55e; }
.btn-warning { background: #eab308; color: #000; }
.btn-danger { background: #ef4444; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* LICENSE CARDS */
.license-card { }
.license-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.license-details { font-size: 13px; color: #999; margin-bottom: 12px; }
.license-details div { margin-bottom: 4px; }
.license-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* LOGIN */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #151515; border: 1px solid #222; border-radius: 12px; padding: 40px; width: 400px; text-align: center; }
.login-card h1 { font-size: 24px; margin-bottom: 8px; }
.login-card p { color: #888; margin-bottom: 24px; }

h1 { font-size: 24px; margin-bottom: 16px; }
h2 { font-size: 18px; margin-top: 24px; margin-bottom: 12px; color: #ccc; }
h3 { font-size: 16px; margin-bottom: 12px; color: #aaa; }
