/* Modern UI Improvements for CRMPortal */
/* Add this file to index.html after style.css */

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */
html, body {
    font-size: 14px !important; /* Increased from 12px */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* ============================================
   COLOR SCHEME MODERNIZATION
   ============================================ */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --success-hover: #059669;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
}

/* ============================================
   BUTTON IMPROVEMENTS
   ============================================ */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ============================================
   NAVBAR IMPROVEMENTS
   ============================================ */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar-brand img {
    max-height: 40px;
    transition: opacity 0.2s;
}

.navbar-brand:hover img {
    opacity: 0.8;
}

.navbar-text {
    padding: 0.5rem 0;
}

.navbar-text img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SEARCH IMPROVEMENTS
   ============================================ */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-btn .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ============================================
   TABLE IMPROVEMENTS
   ============================================ */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--bg-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding: 12px;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid var(--border-color);
}

/* ============================================
   CARD IMPROVEMENTS (if using cards)
   ============================================ */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MODAL IMPROVEMENTS
   ============================================ */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* ============================================
   LIST GROUP IMPROVEMENTS
   ============================================ */
.list-group-item {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.15s ease;
}

.list-group-item:hover {
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 13px;
}

.list-group-item a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.list-group-item a:hover {
    color: var(--primary-color);
}

.list-group-item .badge {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 4px 8px;
    font-weight: 500;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */
#footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

#footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#footer p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   LOADING STATES
   ============================================ */
.progress {
    border-radius: 8px;
    height: 8px;
    background-color: var(--bg-light);
}

.progress-bar {
    border-radius: 8px;
    transition: width 0.3s ease;
}

/* ============================================
   ALERT IMPROVEMENTS
   ============================================ */
.alert {
    border-radius: 6px;
    border: none;
    padding: 12px 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* ============================================
   LINK IMPROVEMENTS
   ============================================ */
a {
    color: var(--primary-color);
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   SPACING IMPROVEMENTS
   ============================================ */
.section {
    padding: 2rem 0;
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .table {
        font-size: 12px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 4px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .navbar-text {
        font-size: 12px;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Smooth transitions for all interactive elements */
* {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

