:root {
    --primary: #4a6cf7;
    --primary-hover: #3a57d7;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #343a40;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fb;
    padding: 20px;
    overflow-y: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h1{
    font-size: 18px;
    font-weight: 700;
}
h2{
    font-size: 12px;
    font-weight: 500;
}
h3{
    font-size: 10px;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header {
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
}

.card-body {
    padding: 10px;
}

.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%233a4151' d='M4.646 8.646a.5.5 0 01.708 0L8 11.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 100px;
    resize: none;
}

.cards-container {
    margin-bottom: 10px;
}

.card-item {
    position: relative;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px;
    margin-bottom: 10px;
}

.card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.card-item-number {
    font-weight: 500;
    color: var(--primary);
}

.card-actions {
    display: flex;
    gap: 5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-success {
    background-color: var(--success);
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--danger);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-warning {
    background-color: var(--warning);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.form-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

tr:hover {
    background-color: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-chat {
    background-color: #ebf8ff;
    color: #3182ce;
}

.badge-voice {
    background-color: #fef3c7;
    color: #d97706;
}

.card-preview {
    padding: 10px;
    background-color: #f7fafc;
    border-radius: 4px;
    margin-top: 5px;
    white-space: pre-wrap;
}

.action-column {
    display: flex;
    gap: 5px;
}

.tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.import-export-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.import-container, .export-container {
    flex: 1;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0;
}

.tag {
    background-color: #edf2f7;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-remove {
    cursor: pointer;
    color: var(--secondary);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-icon {
    font-size: 20px;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.status-pill {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: var(--success);
}

.status-draft {
    background-color: var(--warning);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.tag-input-container {
    position: relative;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 5;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.tag-suggestions.show {
    display: block;
}

.tag-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
}

.tag-suggestion-item:hover {
    background-color: #f7fafc;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.card-content-input {
    display: flex;
    gap: 10px;
}

.card-content-input .form-control {
    flex: 1;
}

.github-integration {
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
}

.github-status {
    margin-top: 10px;
}

#github-auth-form, #github-actions {
    margin-top: 15px;
}

#tagSuggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    z-index: 1000;
    display: none;
}

#tagSuggestions.show {
    display: block;
}

.tag-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.tag-suggestion-item:hover {
    background-color: #f8f9fa;
}

/* Make sure the Import/Export tab has better responsive behavior */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .input-group {
        margin-bottom: 10px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
    }
}



@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-header-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .card-header {
        padding: 12px 15px;
    }
}