/* Unified Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(45deg, #5593e4, #365e92);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.form-control {
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #283593;
    box-shadow: 0 0 0 0.2rem rgba(40, 53, 147, 0.25);
}

.form-label {
    font-weight: 500;
    color: #344767;
    margin-bottom: 0.5rem;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.modal .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal .btn-primary {
    background: linear-gradient(45deg, #1a237e, #283593);
    border: none;
}

.modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal .btn-secondary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #344767;
}

.modal .btn-secondary:hover {
    background: #e9ecef;
}

.modal .btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
}

.modal .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.modal-backdrop.show {
    opacity: 0.7;
}

.modal-dialog {
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Common Button Styles */
.add-btn {
    background: linear-gradient(45deg, #0e0e0f, #0e0f0f);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.add-btn i {
    font-size: 1.1rem;
}

/* Template-specific styles */
.template-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.template-header {
    background: linear-gradient(45deg, #1a237e, #283593);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.template-content {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 12px 12px;
}

.template-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-actions {
    opacity: 1;
}

.btn-action {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.2);
}

.template-text {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.template-text::-webkit-scrollbar {
    width: 5px;
}

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

.template-text::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Remove the old add-template-btn styles */
.add-template-btn {
    display: none;
}

/* Service-specific styles */
.header-row {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.question-row {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.remove-btn {
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* User-specific styles */
.service-checkbox {
    margin-bottom: 0.5rem;
}

.service-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.service-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Admin Layout Styles */
.g-sidenav-show {
    min-height: 100vh;
}

.g-sidenav-show .sidenav {
    width: 250px;
    z-index: 1038;
}

.g-sidenav-show .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .g-sidenav-show .sidenav {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        margin: 0;
    }

    .g-sidenav-show .main-content {
        margin-left: 0;
        width: 100%;
    }

    .g-sidenav-show .sidenav.show {
        transform: translateX(0);
    }
}

/* Container adjustments */
.container-fluid {
    padding-right: 24px;
    padding-left: 24px;
}

/* Card adjustments */
.card {
    margin-bottom: 24px;
}

/* Table adjustments */
.table-responsive {
    margin-bottom: 0;
}

/* Form adjustments */
.form-control:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

/* Button adjustments */
.btn {
    text-transform: none;
    font-weight: 500;
}

/* Alert adjustments */
.alert {
    margin-bottom: 24px;
}

/* Breadcrumb adjustments */
.breadcrumb {
    margin-bottom: 0;
}

/* Navbar adjustments */
.navbar-main {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Sidenav adjustments */
.sidenav {
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
}

.sidenav .nav-link {
    padding: 0.75rem 1rem;
}

.sidenav .nav-link i {
    font-size: 1.25rem;
}

/* Footer adjustments */
.sidenav-footer {
    padding: 1rem;
    background: transparent;
}

/* Scrollbar adjustments */
.sidenav-scrollbar {
    height: calc(100vh - 200px);
}

/* Content area adjustments */
.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Dark Mode Styles */
.dark-version {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

.dark-version .sidenav {
    background: #242424 !important;
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.3);
}

.dark-version .navbar-main {
    background: #242424 !important;
}

.dark-version .card {
    background: #242424 !important;
    border-color: #333 !important;
}

.dark-version .table {
    color: #fff !important;
}

.dark-version .modal-content {
    background: #242424 !important;
    color: #fff !important;
}

.dark-version .form-control {
    background: #333 !important;
    border-color: #444 !important;
    color: #fff !important;
}

.dark-version .form-control:focus {
    border-color: #666 !important;
}

.dark-version .dropdown-menu {
    background: #242424 !important;
    border-color: #333 !important;
}

.dark-version .dropdown-item {
    color: #fff !important;
}

.dark-version .dropdown-item:hover {
    background: #333 !important;
}

/* Notification Badge */
.badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* User Avatar */
.avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
}

/* Theme Toggle Button */
#theme-toggle {
    color: inherit;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(15deg);
}

/* Dropdown Menu Animations */
.dropdown-menu {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease;
    display: block;
    visibility: hidden;
}

.dropdown-menu.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

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

.dark-version .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Form Control Focus */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.dark-version .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

/* Table Styles */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Breadcrumb Styles */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Dashboard Styles */
.numbers {
    padding: 0.5rem 0;
}

.numbers .text-sm {
    font-size: 0.875rem;
}

.numbers .font-weight-bolder {
    font-size: 1.25rem;
}

.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-shape i {
    font-size: 1.5rem;
    color: white;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-block {
    position: relative;
}

.timeline-step {
    position: absolute;
    left: -3rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(20, 20, 20, 0.12), 0 0.125rem 0.25rem -0.0625rem rgba(20, 20, 20, 0.07);
}

.timeline-step i {
    font-size: 1rem;
}

/* Chart Styles */
.chart {
    position: relative;
    height: 300px;
}

.chart-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Card Header Styles */
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-version .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-version .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Notification Styles */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.unread:hover {
    background: rgba(0, 0, 0, 0.04);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: rgba(0, 0, 0, 0.05);
}

.notification-icon i {
    font-size: 1.25rem;
}

.notification-content {
    flex: 1;
}

.notification-message {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.notification-time {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-width: 350px;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast-content {
    display: flex;
    align-items: center;
}

.notification-toast-content i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.notification-toast-message {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Dark Mode Notification Styles */
.dark-version .notification-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-version .notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark-version .notification-item.unread {
    background: rgba(255, 255, 255, 0.05);
}

.dark-version .notification-item.unread:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dark-version .notification-icon {
    background: rgba(255, 255, 255, 0.1);
}

.dark-version .notification-toast {
    background: #242424;
    color: white;
} 