:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --background-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

    --status-new: #3498db;
    --status-contacted: #f1c40f;
    --status-site_visit: #9b59b6;
    --status-negotiation: #e67e22;
    --status-closed: #2ecc71;
    --status-lost: #e74c3c;

    --priority-hot: #e74c3c;
    --priority-warm: #f39c12;
    --priority-cold: #95a5a6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar a {
    color: #666;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar a:hover {
    color: var(--primary-color);
}

.navbar .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .navbar a {
        margin-left: 0;
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #444;
}

/* Dashboard Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forms & Inputs */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
    min-width: 250px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: var(--status-closed);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20bd5a;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.hot {
    background: var(--priority-hot);
}

.badge.warm {
    background: var(--priority-warm);
}

.badge.cold {
    background: var(--priority-cold);
}

.badge.new {
    background: var(--status-new);
}

.badge.contacted {
    background: var(--status-contacted);
}

.badge.site_visit {
    background: var(--status-site_visit);
    color: white;
}

.badge.negotiation {
    background: var(--status-negotiation);
}

.badge.closed {
    background: var(--status-closed);
}

.badge.lost {
    background: var(--status-lost);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid #eee;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: #fcfcfc;
}

/* Timeline for activities */
.timeline {
    border-left: 2px solid #eee;
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
}

.timeline-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f9f9f9;
    padding: 12px;
    border-radius: var(--border-radius-sm);
}

/* Utility */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 15px;
}

.text-muted {
    color: #888;
}

.text-danger {
    color: #e74c3c;
}