* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
}

body {
    background-color: #181825;
    color: #cdd6f4;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #1e1e2e;
    padding: 10px;
    border-bottom: 1px solid #313244;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 20px;
}

.auth-status {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.auth-status.authenticated {
    background-color: #94e2d5;
    color: #11111b;
}

.auth-status.unauthenticated {
    background-color: #f38ba8;
    color: #11111b;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 15%;
    border-right: 1px solid #313244;
    padding: 10px;
    overflow: auto;
}

.content-panel {
    flex: 1;
    padding: 10px;
    overflow: auto;
}

.command-history {
    margin-bottom: 15px;
}

.command {
    color: #a6e3a1;
    margin-bottom: 5px;
}

.user-command {
    color: #f5c2e7;
}

.system-response {
    color: #fab387;
    margin-top: 5px;
    margin-bottom: 5px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.command-input-container {
    display: flex;
    margin-bottom: 20px;
}

.command-prompt {
    color: #f5c2e7;
}

.command-input {
    flex: 1;
    background-color: transparent;
    border: none;
    outline: none;
    color: #f5c2e7;
    margin-left: 5px;
}

.client {
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.33s ease;
}

.client.selected {
    color: white;
}

.client-header {
    display: flex;
}

.client-header > .arrow {
    margin-right: 5px;
}

.client-details {
    padding-left: 15px;
}

.info-header {
    color: #89b4fa;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.divider {
    color: #666;
    margin: 10px 0;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.info-label {
    color: #a6adc8;
    width: 120px;
}

.info-colon {
    margin: 0 5px;
}

.notes-section {
    margin-top: 10px;
}

.notes-content {
    padding-left: 15px;
    margin-top: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #3b82f6;
    color: white;
    border-radius: 4px;
    display: none;
    z-index: 100;
}

.notification.error {
    background-color: #f38ba8;
}

.notification.success {
    background-color: #10b981;
}

.btn {
    background-color: #11111b;
    color: #cdd6f4;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
}

.btn:hover {
    background-color: #89b4fa;
    color: #11111b;
    transition : background-color 0.3s ease, color 0.3s ease;
}

.btn.edit {
    background-color: #fab387;
    color: #11111b;
}

.btn.edit:hover {
    background-color: #f9e2af;
}

.btn.save {
    background-color: #10b981;
    color: #11111b;
}

.btn.save:hover {
    background-color: #94e2d5;
}

.btn.cancel {
    background-color: #f38ba8;
    color: #11111b;
}

.btn.cancel:hover {
    background-color: #eba0ac;
}

.edit-mode .info-value {
    display: none;
}

.info-value {
    flex: 1;
}

.info-edit {
    flex: 1;
    display: none;
}

.edit-mode .info-edit {
    display: block;
}

.info-edit input, .info-edit textarea {
    width: 100%;
    background-color: #181825;
    color: #89b4fa;
    border: 1px solid #313244;
    padding: 3px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.info-edit textarea {
    min-height: 80px;
    resize: vertical;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #181825;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    color: #cdd6f4;
    border: 1px solid #313244;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #313244;
}

.close-button {
    background: none;
    border: none;
    color: #f87171;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid #313244;
    text-align: right;
}

.import-input {
    display: none;
}

.import-label {
    display: inline-block;
    background-color: #89b4fa;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.import-label:hover {
    background-color: #89b4fa;
}

.encrypted-message {
    background-color: #1a2e44;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre;
    font-family: monospace;
}

.copy-button {
    background-color: #89b4fa;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-family: monospace;
}

.copy-button:hover {
    background-color: #89b4fa;
}

.custom-date-picker {
    background-color: #181825;
    border: 1px solid #313244;
    padding: 10px;
    border-radius: 4px;
    color: #cdd6f4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-modal {
    cursor: pointer;
    color: #f38ba8;
    font-size: 24px;
    line-height: 1;
}

#exportData, 
#importData {
    width: 100%;
    margin-top: 10px;
    background-color: #1e1e2e;
    color: #cdd6f4;
    border: 1px solid #313244;
    padding: 5px;
    min-height: 200px;
    font-family: monospace;
    resize: vertical;
}

.file-input-container {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.clickable-command {
    color : #89b4fa;
    text-decoration: underline;
    cursor: pointer;
}

.clickable-command:hover {
    color: #f0f0f0;
    transition : color 0.3s ease;
}

/* Style for the theme switch */
.theme-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch input {
    display: none;
}

.theme-switch .slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.theme-switch .slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}

.theme-switch input:checked + .slider {
    background-color: #4ade80;
}

.theme-switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Generator modal styles */
.generator-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #cdd6f4;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
    background-color: #181825;
    color: #cdd6f4;
    border: 1px solid #313244;
    padding: 5px;
}

.range-inputs span {
    color: #cdd6f4;
}

.generator-form select {
    width: 100%;
    background-color: #181825;
    color: #cdd6f4;
    border: 1px solid #313244;
    padding: 5px;
}

.preview-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #181825;
    border: 1px solid #313244;
    border-radius: 5px;
}

.preview-section h3 {
    margin-top: 0;
    color: #cdd6f4;
    margin-bottom: 15px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preview-item {
    display: flex;
    gap: 10px;
}

.preview-label {
    font-weight: bold;
    color: #b4befe;
    min-width: 80px;
}

.preview-value {
    color: #cdd6f4;
}

.generator-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#generateClientButton,
#fillFormButton,
#saveClientButton {
    background-color: #11111b;
    color: #cdd6f4;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
}

#generateClientButton:hover,
#fillFormButton:hover,
#saveClientButton:hover {
    background-color: #89b4fa;
    color: #11111b;
}

#generateClientButton:disabled,
#fillFormButton:disabled,
#saveClientButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#clientGeneratorModal .modal-content {
    width: 800px;
    max-width: 90vw;
    background-color: #1e1e2e;
    color: #cdd6f4;
}

#clientGeneratorModal .range-inputs input {
    width: 80px;
    min-width: 0;
}

#clientGeneratorModal .form-row {
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    #clientGeneratorModal .form-group {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }
}

.client-tracker-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #333;
}

.tracker-container {
    margin-top: 10px;
}

.tracker-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.tracker-label {
    width: 130px;
    font-weight: bold;
    color: #89b4fa;
}

.tracker-value {
    flex: 1;
    padding-left: 10px;
}

.tracker-edit {
    display: none;
    padding-left: 10px;
}

.edit-mode .tracker-edit {
    display: block;
}

.edit-mode .tracker-value {
    display: none;
}

.tracker-divider {
    height: 1px;
    background-color: #313244;
    margin: 15px 0;
    opacity: 0.5;
}

/* Style for date picker inputs */
.tracker-edit input[type="text"] {
    background-color: #121212;
    color: #89b4fa;
    border: 1px solid #313244;
    padding: 5px;
    margin-right: 5px;
}

.tracker-edit label {
    font-size: 0.8em;
    color: #a6adc8;
}

.tracker-edit select {
    background-color: #121212;
    color: #89b4fa;
    border: 1px solid #313244;
    padding: 5px;
}

/* Backup Management Styles */
.backup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #1e1e1e;
    color: #4ade80;
    font-size: 14px;
}

.backup-table th,
.backup-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.backup-table th {
    background-color: #2a2a2a;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.backup-table tr:hover {
    background-color: #2a2a2a;
}

/* Make table responsive */
@media (max-width: 768px) {
    .backup-table {
        font-size: 12px;
    }
    
    .backup-table th,
    .backup-table td {
        padding: 6px 8px;
    }
    
    #backupModal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}