/* Variables de color */
:root {
    --sidebar-bg: #1D2126;
    --sidebar-link-color: #bdc3c7;
    --sidebar-link-hover-bg: #343f5e;
    --white: #fff;
    --primary: #3D58F2;
    --primary-hover: #3D6AF2;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --danger: #e74c3c;
    --secondary-text: #6c757d;
    --light-border: #e9ecef;
    --attachment-bg: #fafbfc;
    --text-dark: #2c3e50;
    --muted: #495057;
    --border-light-variant: #f1f3f4;
}

.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    width: 60px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar .nav-link {
    color: var(--sidebar-link-color);
    padding: 15px 0;
    text-align: center;
    border-radius: 0;
    position: relative;
}

.sidebar .nav-link:hover {
    background-color: var(--sidebar-link-hover-bg);
    color: var(--white);
}

.sidebar .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.main-content {
    margin-left: 60px;
    background-color: var(--light-bg);
    min-height: 100vh;
}

.top-navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
}

.content-area {
    padding: 24px;
    max-width: 1000px;
}

.form-container {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 32px;
}

.badge-notification {
    background-color: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-text {
    background-color: var(--light-bg);
    border-right: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.invoice-table-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.section-divider {
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 32px 0 16px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--light-border);
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

.new-badge {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.invoice-table {
    margin-top: 16px;
}

.invoice-table .form-control {
    border: 1px solid var(--light-border);
    background-color: var(--light-bg);
}

.add-row-btn {
    color: #3498db;
    background: none;
    border: none;
    padding: 8px;
    margin-top: 8px;
}

.add-row-btn:hover {
    background-color: var(--light-bg);
    border-radius: 4px;
}

.attachment-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    background-color: var(--attachment-bg);
    margin: 24px 0;
}

.attachment-zone:hover {
    border-color: var(--primary);
    background-color: var(--light-bg);
}

.browse-link {
    color: var(--primary);
    text-decoration: none;
}

.browse-link:hover {
    text-decoration: underline;
}

.create-btn {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 32px;
    font-weight: 500;
}

.create-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.check-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.check-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin: 0;
}

.check-issued {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.status-badge {
    background-color: var(--border-light-variant);
    color: var(--muted);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.menu-btn {
    background-color: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background-color: #34495e;
}

.check-preview {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.check-amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.amount-words {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.check-number-display {
    position: absolute;
    top: 32px;
    right: 32px;
    font-weight: 600;
    color: var(--text-dark);
}

.check-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.detail-section h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-content {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.check-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
}

.activity-section {
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light-variant);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 8px;
    height: 8px;
    background-color: var(--text-dark);
    border-radius: 50%;
    margin-right: 12px;
}

.activity-user {
    font-weight: 500;
    color: var(--text-dark);
}

.activity-time {
    color: var(--muted);
    font-size: 0.85rem;
}