/* Protocol Keygen v5 — Dark theme styling */

body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #16213e, #1a1a2e) !important;
    border-bottom: 1px solid rgba(56, 139, 253, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

.navbar .nav-link:hover {
    background-color: rgba(56, 139, 253, 0.1);
}

.navbar .nav-link.active {
    background-color: rgba(56, 139, 253, 0.15);
    color: #58a6ff !important;
}

/* Card styling */
.card {
    border-radius: 0.75rem;
    border-color: rgba(56, 139, 253, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(56, 139, 253, 0.1) !important;
}

.card-title {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-success {
    background: linear-gradient(135deg, #238636, #2ea043);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    box-shadow: 0 2px 8px rgba(46, 160, 67, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #da3633, #f85149);
    border: none;
}

.btn-danger:hover {
    box-shadow: 0 2px 8px rgba(248, 81, 73, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    border: none;
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #388bfd, #58a6ff);
    box-shadow: 0 2px 8px rgba(56, 139, 253, 0.3);
    color: #fff;
}

/* Form controls */
.form-control, .form-select {
    background-color: #0d1117;
    border-color: rgba(56, 139, 253, 0.15);
    color: #e0e0e0;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: #0d1117;
    border-color: #388bfd;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
    color: #e0e0e0;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #8b949e;
    margin-bottom: 0.35rem;
}

/* Log terminal */
.log-terminal {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 16px;
    height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: 0 0 0.75rem 0.75rem;
}

.log-terminal::-webkit-scrollbar {
    width: 8px;
}

.log-terminal::-webkit-scrollbar-track {
    background: #161b22;
}

.log-terminal::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.log-terminal::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Progress bar */
.progress {
    background-color: #21262d;
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.4s ease;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Badge */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

/* Batch list items */
.list-group-item {
    cursor: pointer;
    transition: background-color 0.15s, border-left 0.15s;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    background-color: rgba(56, 139, 253, 0.08) !important;
    border-left-color: rgba(56, 139, 253, 0.3);
}

.list-group-item.active {
    background-color: rgba(31, 111, 235, 0.15) !important;
    border-color: #1f6feb !important;
    border-left: 3px solid #388bfd;
}

/* Table */
.table-dark {
    --bs-table-bg: transparent;
}

.table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b949e;
    border-bottom-color: rgba(56, 139, 253, 0.12) !important;
}

/* Toast */
.toast {
    background-color: #21262d;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Alert */
.alert {
    border-radius: 0.5rem;
}

/* Dropdown */
.dropdown-menu-dark {
    background-color: #161b22;
    border-color: rgba(56, 139, 253, 0.15);
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dropdown-item:hover {
    background-color: rgba(56, 139, 253, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .log-terminal {
        height: 400px;
        font-size: 11px;
    }
}
