/* EasySafe Licensing Portal — matches www.easy-safe.eu design */

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

body {
    font-family: "Roboto", Arial, sans-serif;
    background: #1d272c;
    color: #e4eaee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #03a9f4; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
    background: #263238;
    border-bottom: 3px solid #8bc34a;
    padding: 16px 0;
}

header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

header .logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header .logo .easy { color: #fff; }
header .logo .safe { color: #8bc34a; }

header nav { display: flex; gap: 16px; align-items: center; }
header nav a {
    color: #c6d2d9;
    font-size: 14px;
    font-weight: 400;
}
header nav a:hover { color: #fff; }

/* Main content */
main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    padding: 0 24px;
}

/* Cards */
.card {
    background: #263238;
    border: 1px solid #37474f;
    border-radius: 2px;
    padding: 32px;
    margin-bottom: 24px;
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #c6d2d9;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #c6d2d9;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #1d272c;
    border: 1px solid #37474f;
    border-radius: 2px;
    color: #e4eaee;
    outline: none;
}

.form-group input:focus {
    border-color: #03a9f4;
    box-shadow: 0 0 0 1px #03a9f4;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #e4eaee;
    cursor: pointer;
}

/* Feature list (vertical, one per row) */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #e4eaee;
    cursor: pointer;
}

.feature-list input[type="checkbox"] {
    accent-color: #8bc34a;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-sub {
    display: flex;
    gap: 16px;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #8bc34a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #03a9f4;
    color: #fff;
}

.btn-primary:hover {
    background: #0288d1;
}

.btn-success {
    background: #8bc34a;
    color: #fff;
}

.btn-success:hover {
    background: #7cb342;
}

.btn-danger {
    background: #f44336;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    background: #d32f2f;
}

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

/* Errors */
.errors {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    border-radius: 2px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.errors li {
    color: #f44336;
    font-size: 13px;
    margin-left: 16px;
}

/* License key display */
.key-display {
    background: #1d272c;
    border: 1px solid #37474f;
    border-radius: 2px;
    padding: 12px 16px;
    font-family: "Roboto Mono", monospace;
    font-size: 18px;
    letter-spacing: 2px;
    color: #8bc34a;
    text-align: center;
    margin: 12px 0;
    user-select: all;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #37474f;
    font-size: 14px;
}

table th {
    color: #c6d2d9;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td { color: #e4eaee; }

table tr:hover td {
    background: rgba(3, 169, 244, 0.05);
}

/* Feature badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sagemath { background: #8bc34a; color: #fff; }
.badge-issues { background: #03a9f4; color: #fff; }
.badge-github_bridge { background: #9c27b0; color: #fff; }
.badge-jira_bridge { background: #ff9800; color: #fff; }
.badge-collaboration { background: #00bcd4; color: #fff; }

/* Info box */
.info-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.info-item {
    flex: 1;
    background: #1d272c;
    border: 1px solid #37474f;
    border-radius: 2px;
    padding: 16px;
    text-align: center;
}

.info-item .label {
    font-size: 12px;
    color: #c6d2d9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

/* Session status dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8bc34a;
    margin-right: 6px;
}

/* Footer */
footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #37474f;
}

/* Auth pages centered */
.auth-container {
    max-width: 420px;
    margin: 80px auto;
}

.auth-container .card {
    text-align: center;
}

.auth-container .card h2 {
    margin-bottom: 8px;
}

.auth-container .card p {
    color: #c6d2d9;
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-container .form-group {
    text-align: left;
}

.auth-container .btn {
    width: 100%;
    margin-top: 8px;
}

.auth-container .auth-link {
    margin-top: 16px;
    font-size: 13px;
    color: #c6d2d9;
}

/* Actions cell */
.actions {
    display: flex;
    gap: 6px;
}
