/* Custom styles for Easifynow.com */

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

/* Credit Balance Bar */
.credit-bar {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 50%, #e0eff5 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(13, 110, 253, 0.15) !important;
}

.credit-bar .credit-item {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.7);
}

.credit-bar .credit-items-row {
    gap: 30px;
}

/* Tracked URLs: group each URL's keyword rows + backlink cloud visually
   under their URL via a shared left accent, background tint and indent */
#urls-list tr.url-header > td {
    border-left: 3px solid #0d6efd;
}

#urls-list tr.url-child > td {
    border-left: 3px solid #cfe2ff;
    background: #f8fafd;
}

#urls-list tr.url-child > td[colspan] {
    padding-left: 1.5rem;
}

@media (max-width: 576px) {
    .credit-bar .credit-item {
        font-size: 0.75rem;
    }

    .credit-bar .credit-items-row {
        gap: 0.5rem;
    }
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.75em;
}

.alert {
    border: none;
    border-radius: 0.375rem;
}

.btn {
    border-radius: 0.375rem;
}

.form-control,
.form-select {
    border-radius: 0.375rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Table styling */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.table td {
    vertical-align: middle;
}

.table code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Quill Editor Styling */
.ql-editor {
    min-height: 200px;
    font-size: 14px;
    line-height: 1.6;
}

.ql-toolbar {
    border-top: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: #f8f9fa;
}

.ql-container {
    border-bottom: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    font-family: inherit;
}

.ql-editor:focus {
    outline: none;
}

.ql-editor.ql-blank::before {
    color: #6c757d;
    font-style: italic;
}

/* Quill Snow Theme Customization */
.ql-snow .ql-tooltip {
    z-index: 1060;
    /* Above Bootstrap modals */
}

.ql-snow .ql-picker-label {
    color: #495057;
}

.ql-snow .ql-stroke {
    stroke: #495057;
}

.ql-snow .ql-fill {
    fill: #495057;
}

/* Content Preview Modal Styling */
.content-preview {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1.5rem;
    background: #ffffff;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
}

.content-preview h1,
.content-preview h2,
.content-preview h3 {
    color: #212529;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.content-preview h1:first-child,
.content-preview h2:first-child,
.content-preview h3:first-child {
    margin-top: 0;
}

.content-preview p {
    margin-bottom: 1rem;
    color: #495057;
}

.content-preview blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

.content-preview code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.content-preview pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content-preview pre code {
    background: none;
    padding: 0;
    color: #495057;
}

.content-preview ul,
.content-preview ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-preview li {
    margin-bottom: 0.25rem;
}

/* Form Actions Styling */
.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    flex: 1;
    min-width: 120px;
}

.form-actions .btn-outline-secondary {
    border-color: #ced4da;
}

/* Character Counter Enhancement */
#content-counter {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

#content-counter.text-warning {
    font-weight: 500;
}

/* Enhanced Quill Editor Container */
.quill-editor-container {
    position: relative;
    margin-bottom: 1rem;
}

.quill-editor-container .ql-editor {
    min-height: 300px;
}

/* Focus state for Quill editor */
.ql-container.ql-snow:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Quill HTML Edit Button Styling */
.ql-snow .ql-toolbar button[title="Show HTML source"] {
    min-width: 40px;
    white-space: nowrap;
}

/* HTML Edit Button Modal/Popup Styling */
.ql-html-popupContainer button,
.ql-html-buttonGroup button {
    transition: none !important;
    min-width: 80px;
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.ql-html-popupContainer button:hover,
.ql-html-buttonGroup button:hover {
    transform: none !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .table-responsive .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .d-md-flex.justify-content-md-end {
        flex-direction: column !important;
    }

    .me-md-2 {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        min-width: auto;
    }

    .content-preview {
        padding: 1rem;
        max-height: 300px;
    }

    .ql-toolbar.ql-snow {
        padding: 0.5rem;
    }

    .ql-editor {
        min-height: 200px !important;
    }
}

/* Disable all hover transform/translate effects across the entire site */
*:hover,
.card:hover,
.btn:hover,
a:hover,
tr:hover,
td:hover,
th:hover,
div:hover {
    transform: none !important;
    transition: transform 0s !important;
}

/* Specifically disable Bootstrap card hover effects */
.card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ========================================
   Site Footer Styles
   ======================================== */
.site-footer {
    background-color: #1a1a2e !important;
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 60px;
    position: relative;
    width: 100%;
}

.site-footer .footer-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.site-footer .footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.site-footer .footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.site-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-section ul li {
    margin-bottom: 0.75rem;
}

.site-footer .footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.site-footer .footer-section ul li a:hover {
    color: #ffffff;
}

.site-footer .footer-contact ul li {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-contact.text-end ul {
    text-align: right;
}

.site-footer .footer-contact ul li svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.site-footer .footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-contact ul li a:hover {
    color: #ffffff;
}

.site-footer .footer-bottom {
    padding: 25px 0;
}

.site-footer .footer-legal {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .footer-legal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.site-footer .footer-legal ul {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}

.site-footer .footer-legal ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-footer .footer-legal ul li a:hover {
    color: #ffffff;
}

/* Footer responsive styles */
@media (max-width: 576px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .site-footer .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .site-footer .footer-contact.text-end,
    .site-footer .footer-contact.text-end ul {
        text-align: left;
    }

    .site-footer .footer-contact ul li {
        justify-content: flex-start;
    }

    .site-footer .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .site-footer .footer-legal ul {
        justify-content: center;
    }
}

/* TLD Selection Cards */
.tld-card-label {
    text-decoration: none !important;
}

.tld-card-label:hover .tld-card {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.tld-card-label .tld-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tld-card-label input:checked~.tld-card,
.tld-card-label:has(input:checked) .tld-card {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

/* ========================================
   Notification System Styles
   ======================================== */

/* Notification badge on bell icon */
.notification-badge {
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    line-height: 16px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: translate(-50%, 0) scale(1);
    }

    50% {
        transform: translate(-50%, 0) scale(1.1);
    }
}

/* Notification dropdown */
.notification-dropdown {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-dropdown .dropdown-header {
    background-color: #f8f9fa;
}

.notification-dropdown .notification-list {
    background-color: #fff;
}

@media (max-width: 767px) {

    .notification-dropdown,
    .credit-bar .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        min-width: unset !important;
        max-width: unset !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        transform: none !important;
    }
}

/* Notification item in dropdown */
.notification-item {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
}

.notification-item.unread:hover {
    background-color: #d4e5ff;
}

/* Notification archive page */
.list-group-item.notification-item {
    cursor: pointer;
}

.list-group-item.notification-item.unread {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
}

.list-group-item.notification-item:hover {
    background-color: #f0f4f8;
}

/* Notification preferences table */
.preference-row .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.preference-row .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.preference-category h5 {
    color: #495057;
}

/* Notification modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.notification-modal .modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.notification-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.notification-modal .modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.notification-modal .modal-body {
    padding: 1rem;
}

.notification-modal .modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Empty state styling */
.no-notifications {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}