/*
    DEMO STYLE
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

body {
    font-family: 'Theoma', sans-serif; /* Assuming Theoma is a web-safe font or imported */
    background: #fafafa;
}

p {
    font-family: 'Theoma', sans-serif; /* Assuming Theoma is a web-safe font or imported */
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* --------------------------------------------------- */
/* SIDEBAR STYLE */
/* --------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #7386D5;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

/* --------------------------------------------------- */
/* CONTENT STYLE */
/* --------------------------------------------------- */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* --------------------------------------------------- */
/* MEDIAQUERIES */
/* --------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* Prospect View Styles */
.prospect-view .card {
    margin-bottom: 20px;
}
.prospect-view .card-header {
    background-color: #f7f7f7;
    font-weight: bold;
}
.prospect-view .card-body p {
    margin-bottom: 10px;
}
.prospect-view .comment-list .comment {
    margin-bottom: 15px;
}

/* Wonderful Submit Button */
.btn-wonderful {
    /* Centering the button */
    display: block; /* Make it a block element to take full width */
    margin: 20px auto; /* Center horizontally */
    width: 50%; /* Adjust width as needed */
    max-width: 300px; /* Max width for larger screens */

    /* Bigger size */
    padding: 20px 40px; /* Increase padding for bigger size */
    font-size: 20px; /* Larger font size */

    /* Gradient background */
    background: linear-gradient(45deg, #7386D5, #6d7fcc); /* Gradient from original colors */
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    transition: all 0.3s ease; /* Smooth transition for all properties */

    /* Animation on hover */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-wonderful:hover {
    background: linear-gradient(45deg, #6d7fcc, #7386D5); /* Reverse gradient on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
    transform: translateY(-3px); /* Slight lift effect */
}

.btn-wonderful::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* White overlay for animation */
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-wonderful:hover::before {
    left: 0;
}

/* Form Field Spacing */
.form-group {
    margin-bottom: 15px; /* Row gap */
}

/* Adjust column gap for Bootstrap rows */
.row {
    --bs-gutter-x: 1.5rem; /* Default Bootstrap gutter */
    --bs-gutter-y: 0;
}

/* Custom gutter for form rows if needed, or rely on form-group margin-bottom */
.form-row { /* Assuming a custom class for form rows if not using default Bootstrap .row */
    margin-right: -7.5px;
    margin-left: -7.5px;
}
.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 7.5px;
    padding-left: 7.5px;
}

.copy-row {
    cursor: pointer;
}
.copy-row:hover {
    background-color: #f0f0f0;
}

/* Date-range picker z-index */
.daterangepicker {
    z-index: 9999 !important;
}

/* Bulk Update Section */
.bulk-update-section {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.bulk-update-section select {
    width: 200px;
    margin-right: 10px;
}

/* History Section Styling */
.history-list {
    padding: 0;
    list-style: none;
}

.history-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    position: relative;
}

.history-item .history-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.history-item .history-content {
    flex-grow: 1;
}

.history-item .history-content p {
    margin-bottom: 5px;
    line-height: 1.4;
    color: #333; /* Darker text for better readability */
}

.history-item .history-content small {
    color: #6c757d !important; /* Muted text for timestamps */
    font-size: 0.85em;
}

.history-item .badge {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    vertical-align: middle;
}

.history-item .alert {
    padding: 8px 12px;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 0.9em;
}

/* Custom colors for event types (using Bootstrap's text color classes) */
.history-icon .fa-plus-circle { color: #28a745; } /* Green for insert */
.history-icon .fa-edit { color: #007bff; } /* Blue for status change */
.history-icon .fa-pencil-alt { color: #ffc107; } /* Yellow for edit */
.history-icon .fa-comment-alt { color: #17a2b8; } /* Cyan for comment */
.history-icon .fa-history { color: #6c757d; } /* Grey for generic history */

/* Status Badges */
.status-badge {
    color: #fff;
    border-radius: 4px;
    padding: 0.3em 0.6em;
    font-size: 0.9em;
    display: inline-block;
}

.status-valid { background-color: #28a745; }
.status-invalid { background-color: #dc3545; }
.status-reviewing { background-color: #fd7e14; }
.status-credit { background-color: #007bff; }
.status-credit-till-res { background-color: #17a2b8; }
.status-reschedule { background-color: #6f42c1; }
.status-duplicate { background-color: #6c757d; }
.status-follow-up { background-color: #ffc107; color: #000; }
.status-out-of-coverage { background-color: #8B4513; }
.status-dnc { background-color: #000; }
.status-decline { background-color: #a94442; }
.status-invoiced { background-color: #218838; }