/* Common Styles */
.column {
    min-height: 500px;
    background-color: #232323;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid white;
}
.card {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: transform 0.2s;
    position: relative;
}
.note-card {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.2s;
    position: relative;
}
.card {
    cursor: grab;
}
.card:hover, .note-card:hover {
    transform: translateY(-2px);
}
.card.dragging {
    opacity: 0.5;
}
.priority-high {
    border-left: 4px solid #ef4444;
}
.priority-medium {
    border-left: 4px solid #f59e0b;
}
.priority-low {
    border-left: 4px solid #10b981;
}
.connection-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}
.connection-indicator.connected {
    background-color: #10b981;
}
.connection-indicator.connecting {
    background-color: #f59e0b;
}
.connection-indicator.disconnected {
    background-color: #ef4444;
}
.white-border {
    border: 1px solid white;
}
.bg-dark {
    background-color: #232323;
}
.chart-container {
    height: 200px;
    margin-top: 1rem;
    border: 1px solid white;
}
.sidebar-tooltip {
    position: absolute;
    left: 100%;
    top: -5px;
    transform: translateY(0) scale(0);
    transform-origin: left center;
    background-color: #232323;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid white;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
}
.group:hover .sidebar-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.edit-task-btn, .edit-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    cursor: pointer;
}
.edit-task-btn i {
    font-size: 8px;
}
.connection-indicator.loading {
    background-color: transparent;
    border: 2px solid #f59e0b;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}
.top-heading {
    display: inline;
}
.top-boxes {
    margin-top: 30px;
}
.fade-in {
    animation: fadeIn 0.5s;
}
.fade-in-modal {
    animation: fadeInModal 0.3s;
}

.column h2 span {
    opacity: 0.7;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .top-heading {
        display: none;
    }
}
/* Notes specific styles */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .notes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Sections */
.app-section {
    display: none;
}
.app-section.active {
    display: block;
}
.whitespace-pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Clients section styles */
#clients-list tr {
    transition: background-color 0.2s ease;
}

.client-edit-btn, .client-delete-btn {
    transition: color 0.2s ease;
}

#client-image-preview-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #374151;
    border-radius: 0.375rem;
}

/* Table styles for clients */
.min-w-full {
    min-width: 100%;
}

.bg-dark table {
    background-color: #232323;
}

/* Responsive table */
.overflow-x-auto {
    overflow-x: auto;
}

/* Client image styles */
.h-10.w-10 {
    height: 2.5rem;
    width: 2.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.object-cover {
    object-fit: cover;
}

/* Button styles for client actions */
.client-edit-btn:hover {
    color: #3b82f6;
}

.client-delete-btn:hover {
    color: #ef4444;
}

/* Form styles for client modal */
#client-image-preview {
    transition: opacity 0.3s ease;
}

#client-image-preview.hidden {
    display: none;
}

#client-image-preview:not(.hidden) {
    display: block;
}

/* File input styling */
input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #f3f4f6;
}

/* Client modal specific styles */
#client-modal .bg-dark {
    background-color: #232323;
}

#client-modal .white-border {
    border: 1px solid white;
}

/* Empty state styling */
#empty-clients {
    padding: 2.5rem 0;
}

#empty-clients i {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

#empty-clients p {
    color: #d1d5db;
}

/* Table cell padding */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Text colors for client table */
.text-white {
    color: white;
}

.text-gray-300 {
    color: #d1d5db;
}

/* Hover effects for client rows */
.hover\:bg-gray-800:hover {
    background-color: #1f2937;
}

/* Transition effects */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Client action buttons spacing */
.mr-3 {
    margin-right: 0.75rem;
}

/* Responsive adjustments for client section */
@media (max-width: 768px) {
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .client-edit-btn, .client-delete-btn {
        padding: 0.25rem;
    }
    
    #clients-list {
        font-size: 0.875rem;
    }
}

/* Scrollbar styling for table */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Client form validation styles */
input:invalid, textarea:invalid {
    border-color: #ef4444;
}

input:valid, textarea:valid {
    border-color: #10b981;
}

/* Loading state for client image upload */
.client-image-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Client table header styles */
.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Client action buttons container */
.text-right {
    text-align: right;
}

/* Client modal button styles */
#save-client-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#save-client-btn:disabled:hover {
    background-color: #059669;
}

/* Client image placeholder styles */
.bg-gray-600 {
    background-color: #4b5563;
}

/* Client table divider styles */
.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 1px;
    border-color: #374151;
}

.border-b {
    border-bottom-width: 1px;
    border-color: #374151;
}

/* Client modal focus styles */
#client-modal input:focus,
#client-modal textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    ring-opacity: 0.5;
}