/*!
 * IntelliSync CRM - Modern Theme Enhancements
 * Custom styles for a professional, modern UI
 */

/* ============================================
   GLOBAL IMPROVEMENTS
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern card shadows */
.box {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Modern buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6dd8 0%, #6a4390 100%);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ============================================
   CONTENT HEADER
   ============================================ */

.content-header > h1 {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.content-header .breadcrumb {
    background: transparent;
    padding: 8px 0;
}

.content-header .breadcrumb > li + li:before {
    content: "›";
    padding: 0 5px;
    color: #999;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.01);
}

/* ============================================
   FORMS
   ============================================ */

.form-control {
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.15);
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
    color: #f57f17;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
    color: #1565c0;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.label {
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 600;
}

/* ============================================
   SIDEBAR ENHANCEMENTS
   ============================================ */

.sidebar-menu > li > a {
    transition: all 0.3s ease;
}

.sidebar-menu > li.active > a,
.sidebar-menu > li > a:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
}

.sidebar-menu .treeview-menu > li > a {
    transition: all 0.3s ease;
}

.sidebar-menu .treeview-menu > li > a:hover {
    color: #667eea;
    padding-left: 20px;
}

/* ============================================
   INFO BOXES
   ============================================ */

.info-box {
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.info-box-icon {
    border-radius: 10px 0 0 10px;
}

.small-box {
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   LOADING STATES
   ============================================ */

.overlay {
    border-radius: 10px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination > li > a,
.pagination > li > span {
    border-radius: 6px;
    margin: 0 3px;
    border: 2px solid #e0e0e0;
    color: #667eea;
    transition: all 0.3s ease;
}

.pagination > li > a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.dropdown-menu > li > a {
    transition: all 0.3s ease;
}

.dropdown-menu > li > a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* ============================================
   PANELS
   ============================================ */

.panel {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.panel-heading {
    border-radius: 10px 10px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .box {
        margin-bottom: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .info-box {
        margin-bottom: 15px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6dd8 0%, #6a4390 100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.rounded-lg {
    border-radius: 15px;
}

.rounded-xl {
    border-radius: 20px;
}
