* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Raleway", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #111827;
    color: white;
    padding: 24px 18px;
}

.brand {
    margin-bottom: 32px;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    color: #d1d5db;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
}

.nav a:hover {
    background: #1f2937;
    color: white;
}

.main {
    flex: 1;
    padding: 28px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
}

.page-header p {
    margin: 0;
    color: #6b7280;
}

.cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-width: 220px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card-label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 34px;
    font-weight: 700;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    background: #f9fafb;
    color: #374151;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover td {
    background: #f9fafb;
}

.strong {
    font-weight: 700;
}

.empty {
    background: #f9fafb;
    color: #6b7280;
    padding: 18px;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    border: none;
    background: #2563eb;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background: #1d4ed8;
}

.alert {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}




.filter-form {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-width: 180px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 8px;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}





.card-value-small {
    font-size: 16px;
    word-break: break-word;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: monospace;
    font-size: 14px;
}

pre {
    background: #111827;
    color: white;
    padding: 14px;
    border-radius: 8px;
    overflow-x: auto;
}



.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}



.form-group-wide input {
    min-width: 320px;
}

.form-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-width: 100px;
    font-size: 14px;
    background: white;
}

.table-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.pagination-label {
    color: #374151;
    font-size: 14px;
}

.btn-disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #d1d5db;
}







.scan-status-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-muted {
    background: #e5e7eb;
    color: #374151;
}

.scan-running {
    margin-top: 12px;
}

.help-text {
    color: #6b7280;
    font-size: 14px;
    margin: 14px 0 0 0;
    line-height: 1.5;
}

.panel-subtitle {
    margin: 6px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .scan-status-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 700px) {
    .scan-status-grid {
        grid-template-columns: 1fr;
    }
}









.details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
}

.send-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-width: 320px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.message-preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.message-preview h3 {
    margin-top: 0;
    font-size: 16px;
}

.message-preview pre {
    margin-bottom: 0;
}

input[readonly] {
    background: #f3f4f6;
    color: #374151;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}




.login-body {
    background: #111827;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-brand {
    margin-bottom: 24px;
}

.login-brand .brand-title {
    color: #111827;
    font-size: 24px;
}

.login-brand .brand-subtitle {
    color: #6b7280;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}





.login-body {
    margin: 0;
    background: #111827;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-card .form-group-wide {
    width: 100%;
}

.login-card .form-group-wide input {
    width: 100%;
    min-width: 0;
}

.login-card .form-actions {
    justify-content: flex-start;
}

.login-brand {
    margin-bottom: 24px;
}

.login-brand .brand-title {
    color: #111827;
    font-size: 24px;
}

.login-brand .brand-subtitle {
    color: #6b7280;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
















