body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #1c1e21;
}

header {
    background-color: #ffffff;
    color: #1c1e21;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.add-btn {
    background-color: #42b72a;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #31a24c;
}

.logout-btn {
    color: #606770;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: #1c1e21;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
}

.login-container input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

.login-container button {
    width: 100%;
    padding: 1rem;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #165ec7;
}

.kanban-board {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    align-items: flex-start;
    min-height: calc(100vh - 100px);
}

.column {
    background-color: #ebedef;
    border-radius: 8px;
    min-width: 300px;
    max-width: 300px;
    padding: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.column h2 {
    font-size: 1rem;
    padding: 0.5rem;
    margin-top: 0;
    border-radius: 4px;
    text-align: left;
    font-weight: 600;
}

/* Colores de estados */
.status-active { color: #2ecc71; }
.status-waiting { color: #f1c40f; }
.status-call { color: #3498db; }
.status-paused { color: #e67e22; }
.status-problem { color: #e74c3c; }
.status-not_interested { color: #34495e; }
.status-renewal { color: #9b59b6; }

.client-list {
    min-height: 200px;
}

.client-card {
    background: white;
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    cursor: grab;
    border-left: 5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.client-card:active {
    cursor: grabbing;
}

.column[data-status="active"] .client-card { border-left-color: #2ecc71; }
.column[data-status="waiting"] .client-card { border-left-color: #f1c40f; }
.column[data-status="call"] .client-card { border-left-color: #3498db; }
.column[data-status="paused"] .client-card { border-left-color: #e67e22; }
.column[data-status="problem"] .client-card { border-left-color: #e74c3c; }
.column[data-status="not_interested"] .client-card { border-left-color: #34495e; }
.column[data-status="renewal"] .client-card { border-left-color: #9b59b6; }

.client-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.client-card p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: #65676b;
}

.notes-preview {
    background-color: #f0f2f5;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    border-left: 3px solid #ffc107;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-content.modal-large {
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.client-details {
    line-height: 1.8;
}

.client-details p {
    margin: 0.8rem 0;
}

.notes-section {
    background-color: #f9f9f9;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.notes-section p {
    margin: 0.5rem 0;
    color: #333;
    font-size: 0.95rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #606770;
    transition: color 0.3s;
}

.close:hover {
    color: #1c1e21;
}

#add-client-form input, 
#add-client-form select,
#edit-client-form input,
#edit-client-form select,
#edit-client-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

#edit-client-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Courier New', monospace;
}

#edit-client-form h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #1c1e21;
}

.save-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #165ec7;
}

.edit-btn {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
    font-weight: 600;
}

.edit-btn:hover {
    background-color: #165ec7;
}

.danger-btn {
    background-color: #fa3e3e;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.danger-btn:hover {
    background-color: #e63535;
}

.modal-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.modal-footer button {
    flex: 1;
}

.search-bar {
    padding: 0.6rem 1rem;
    border: 1px solid #dddfe2;
    border-radius: 20px;
    width: 250px;
    font-size: 0.9rem;
    outline: none;
    transition: width 0.3s, border-color 0.3s;
}

.search-bar:focus {
    width: 350px;
    border-color: #1877f2;
}

.client-card.hidden {
    display: none;
}

.error {
    color: #fa3e3e;
    font-weight: 600;
    margin-top: 1rem;
}
