/* Custom Styles for Client Documentation App */

:root {
    --primary-color: #4a90d9;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar customization */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Card styling */
.card {
    border: none;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

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

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 500;
}

/* Table styling */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.table td {
    vertical-align: middle;
}

/* Button styling */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-group .btn {
    margin: 0 2px;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 217, 0.25);
}

.form-text {
    font-size: 0.8rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Page header */
h1 {
    color: var(--dark-color);
    font-weight: 600;
}

h1 i {
    margin-right: 10px;
    color: var(--primary-color);
}

h5 {
    font-weight: 600;
}

h5 i {
    margin-right: 8px;
}

/* Empty state */
.text-center.py-4.text-muted {
    background-color: var(--light-bg);
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin: 2px 0;
        width: 100%;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between.align-items-center {
        align-items: stretch !important;
    }
    
    .d-flex.justify-content-end.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.justify-content-end.gap-2 .btn {
        width: 100%;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Pre/Code styling for technical notes */
pre {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Link styling in cards */
.card-body a:not(.btn) {
    color: var(--primary-color);
    text-decoration: none;
}

.card-body a:not(.btn):hover {
    text-decoration: underline;
}

/* Modal form inputs */
.modal-body .form-label {
    font-size: 0.9rem;
}

/* Table responsive container */
.table-responsive {
    border-radius: 6px;
}

/* Action buttons in tables */
.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Highlight important sections */
.card-header.bg-danger,
.card-header.bg-warning,
.card-header.bg-info {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

