* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}
.login-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
}
.login-form h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}
.admin-header {
    background-color: #1e293b;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #3b82f6;
}
.btn-logout {
    color: #ef4444;
    text-decoration: none;
    border: 1px solid #ef4444;
    padding: 4px 10px;
    border-radius: 4px;
    transition: 0.2s;
    font-size: 0.9rem;
}
.btn-logout:hover {
    background: #ef4444;
    color: #fff;
}
.admin-body {
    display: flex;
    flex: 1;
}
.admin-sidebar {
    width: 220px;
    background-color: #0f172a;
    padding-top: 20px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: bold;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: #1e293b;
    color: #fff;
    border-left: 4px solid #3b82f6;
}
.sidebar-menu a .icon {
    margin-right: 10px;
}
.admin-content {
    flex: 1;
    padding: 40px;
    background: #fff;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
textarea, input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}
textarea {
    resize: vertical;
}

main hr{
   margin-bottom: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 15px;
}
.btn-primary {
    background-color: #3b82f6;
    color: #fff;
}
.btn-primary:hover {
    background-color: #2563eb;
}
.btn-secondary {
    background-color: #64748b;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    margin-bottom: 0;
    margin-left: 10px;
    vertical-align: middle;
}
.btn-secondary:hover {
    background-color: #475569;
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}
.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}
.file-links-list {
    list-style: none;
    margin-top: 15px;
}
.file-links-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.source-url {
    font-size: 0.8rem;
    color: #64748b;
}
.target-link a {
    color: #3b82f6;
    font-weight: bold;
    text-decoration: none;
}
.stub-box {
    border: 2px dashed #cbd5e1;
    padding: 30px;
    text-align: center;
    color: #64748b;
    border-radius: 8px;
}
.admin-footer {
    background-color: #0f172a;
    color: #64748b;
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
}

.log-panel {
    position: relative;
    margin-top: 10px;
}

.terminal-log {
    background-color: #1e1e1e;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    padding: 36px 15px 15px;
    border-radius: 6px;
    height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0;
    border: 1px solid #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.log-copy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #ccc;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.log-copy-icon:hover {
    background: #3a3a3a;
    border-color: #666;
    color: #fff;
}

.log-copy-icon:disabled {
    cursor: default;
}

.log-copy-icon.copied {
    background: #1b4332;
    border-color: #40916c;
    color: #95d5b2;
}

.log-copy-icon-svg {
    display: block;
}

.log-copy-icon-done {
    display: none;
}

.log-copy-icon.copied .log-copy-icon-copy {
    display: none;
}

.log-copy-icon.copied .log-copy-icon-done {
    display: block;
}