/* Login page specific styles */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(-45deg, #1a237e, #283593, #3949ab, #3f51b5);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3949ab, #1a237e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 73, 171, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(57, 73, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 73, 171, 0); }
}

.logo-text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-card h1 {
    color: #1a237e;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-message {
    background: linear-gradient(45deg, #e8eaf6, #f5f5f5);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 4px solid #3949ab;
    font-size: 0.9rem;
    color: #1a237e;
    text-align: center;
}

.form-floating input.form-control {
    border: 2px solid rgba(26, 35, 126, 0.1);
    border-radius: 10px;
    height: 60px;
    transition: all 0.3s ease;
}

.form-floating input.form-control:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.1);
}

.login-btn {
    height: 50px;
    background: linear-gradient(45deg, #3949ab, #1a237e);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(45deg, #1a237e, #3949ab);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.login-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background */
.area {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 40px;
    height: 40px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
        border-radius: 50%;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 40%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .login-card h1 {
        font-size: 1.75rem;
    }
}

/* Alert customization */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-close {
    filter: none;
}

/* Navbar styles */
.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.35rem;
}

/* Dashboard page specific styles */
.dashboard-wrapper {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 20px 0;
}

/* Header Styles */
.text-gradient {
    background: linear-gradient(45deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Control Panel */
.control-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(57, 73, 171, 0.08);
    transition: all 0.3s ease;
}

.control-panel:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(57, 73, 171, 0.12);
}

.control-panel .row {
    align-items: center;
}

.custom-select {
    height: 45px;
    border-radius: 10px;
    border: 2px solid rgba(26, 35, 126, 0.1);
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.1);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-group .btn {
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 0 1 auto;
}

.btn-group .btn i {
    font-size: 1rem;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 73, 171, 0.2);
}

.btn-group .btn.active {
    background: linear-gradient(45deg, #3949ab, #1a237e);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(57, 73, 171, 0.3);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transition: all 0.3s ease;
}

.articles-grid.filtering {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Article Card */
.article-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;  /* Keep hidden for image border-radius */
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.article-card.unpublished {
    background: rgba(250, 250, 250, 0.9);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.status-badge.unpublished {
    background-color: rgba(220, 53, 69, 0.9); 
    color: white;
}

.status-badge.published {
    background-color: rgba(40, 167, 69, 0.9); 
    color: white;
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.9); 
    color: #212529;
}

/* Link check styles */
.link-duplicate-warning {
    background-color: rgba(255, 193, 7, 0.8) !important;
    color: #212529 !important;
    font-weight: 600 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.link-blacklist-warning {
    background-color: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

/* Hover tooltip styles */
.link-blacklist-tooltip {
    position: fixed;
    background: rgba(52, 58, 64, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    font-weight: 500;
}

.link-blacklist-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.blacklist-action-menu {
    position: fixed;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #adb5bd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    min-width: 140px;
    max-width: 200px;
}

.blacklist-action-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 400;
}

.blacklist-action-menu button:hover {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
}

.blacklist-action-menu button:first-child {
    border-radius: 4px 4px 0 0;
}

.blacklist-action-menu button:last-child {
    border-radius: 0 0 4px 4px;
}

.status-badge i {
    font-size: 0.85em;
}

/* Article Elements */
.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    min-height: 27px; /* Fixed height to ensure consistency */
}

.article-author-placeholder {
    min-height: 27px; /* Same height as article-author */
    margin-bottom: 15px; /* Same margin as article-author */
}

.website-info {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(57, 73, 171, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.website-name {
    font-weight: 500;
    color: #3949ab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.website-domain {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.time-info div {
    margin-bottom: 5px;
}

/* Preview Button */
.btn-preview {
    background: linear-gradient(45deg, #3949ab, #1a237e);
    border: none;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: linear-gradient(45deg, #1a237e, #3949ab);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(57, 73, 171, 0.2);
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Responsive Adjustments */
/* Large screens optimization */
@media (min-width: 1400px) {
    .control-panel .btn-group {
        gap: 10px;
    }
    
    .btn-group .btn {
        padding: 11px 18px;
        font-size: 0.95rem;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .btn-group .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-group .btn i {
        font-size: 0.9rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        width: 100%;
        justify-content: center;
    }

    .btn-group .btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        padding: 10px 12px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .control-panel {
        padding: 15px;
    }
    
    .control-panel .row {
        text-align: center;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 576px) {
    .btn-group .btn {
        flex: 1 1 100%;
        font-size: 0.9rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin: -20px -20px 15px -20px;
    width: calc(100% + 40px);
    overflow: hidden;
}

.article-status {
    position: absolute;
    top: 12px; 
    right: 12px; 
    z-index: 2;
}

.article-pending-status {
    position: absolute;
    top: 12px; 
    left: 12px; 
    z-index: 2;
}

.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 560px;  /* Increased from 530px to accommodate author/placeholder height */
}

.article-header {
    margin-top: 0;
}

.article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 56px;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-actions {
    margin-top: auto;
}

@media (max-width: 768px) {
    .article-card {
        min-height: 550px;  /* Increased to accommodate author/placeholder height */
    }

    .article-image {
        height: 180px;
    }
}

/* Preview page specific styles */
.article-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-content {
    margin-top: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.illustration {
    text-align: center;
    margin: 2.5rem 0;
}

.illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.illustration img:hover {
    transform: scale(1.02);
}

.illustration-caption {
    text-align: center;
    color: #5c6bc0;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-family: inherit;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 0.5rem;
}

.preview-wrapper {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.preview-toolbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.preview-title {
    color: #1a237e;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-tabs {
    border-bottom: 2px solid rgba(57, 73, 171, 0.1);
}

.nav-tabs .nav-link {
    border: none;
    color: #5c6bc0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: #3949ab;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #1a237e;
    background: none;
    border: none;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #3949ab, #1a237e);
    border-radius: 2px;
}

.seo-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.seo-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(236, 239, 241, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(57, 73, 171, 0.1);
}

.seo-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: #1a237e;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.section-content {
    color: #424242;
    line-height: 1.6;
    font-size: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(57, 73, 171, 0.1);
}

.section-content[contenteditable="true"]:focus {
    outline: none;
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

/* Preview page specific button group styles */
.preview-header .btn-group .btn,
.toolbar .btn-group .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Reduce spacing between buttons in preview toolbar */
.preview-toolbar .btn-group .btn.me-1 {
    margin-right: -0.2rem !important;
}

.copy-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn i {
    font-size: 1.1em;
}

.toast-container {
    z-index: 1050;
}

.toast {
    background: rgba(57, 73, 171, 0.95) !important;
    backdrop-filter: blur(10px);
    border: none;
}

/* Preview page mobile responsive */
@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }

    .table-container {
        margin: 1.5rem -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }

    .preview-toolbar {
        padding: 1rem;
    }

    .preview-title {
        font-size: 1.5rem;
    }

    .preview-header .btn-group,
    .toolbar .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .preview-header .btn-group .btn,
    .toolbar .btn-group .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

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

    .seo-container {
        padding: 1rem;
    }

    .seo-section {
        padding: 1rem;
    }
}

/* CSS settings page specific styles */
.mapping-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mapping-row select {
    width: 200px;
    flex-shrink: 0;
}

.mapping-row input {
    flex: 1;
}

.mapping-row .btn-remove {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    background: transparent;
    color: #dc3545;
    transition: all 0.3s ease;
}

.mapping-row .btn-remove:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #bd2130;
}

/* Profile page specific styles */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(57, 73, 171, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
}

.timeline-point {
    position: absolute;
    left: 0.7rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #3949ab;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(57, 73, 171, 0.1);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-container {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
}

.badge.bg-light {
    background-color: rgba(57, 73, 171, 0.1) !important;
    color: #3949ab !important;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0.75rem;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-point {
        left: 0.45rem;
    }
}

/* Website Config specific styles */
.config-wrapper {
    position: relative;
}

.website-selector {
    position: relative;
}

.website-selector select {
    height: 50px;
    border: 2px solid rgba(26, 35, 126, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.website-selector select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.1);
}

.config-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.config-form:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.config-form .form-control,
.config-form .form-select {
    border: 2px solid rgba(26, 35, 126, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.config-form .form-control:focus,
.config-form .form-select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.1);
}

.config-form .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.config-form .input-group {
    position: relative;
}

.config-form .input-group .btn {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-form .input-group .btn:hover {
    transform: translateY(-2px);
}

.config-form .alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.config-form .alert-info {
    background: rgba(57, 73, 171, 0.1);
    color: #3949ab;
}

.btn-save {
    background: linear-gradient(45deg, #3949ab, #1a237e);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: linear-gradient(45deg, #1a237e, #3949ab);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(57, 73, 171, 0.2);
}

.btn-clear {
    border: 2px solid rgba(220, 53, 69, 0.2);
    background: transparent;
    color: #dc3545;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: translateY(-2px);
}

#notWordpressAlert {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    color: #856404;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    z-index: 1050;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .config-form {
        padding: 1.5rem;
    }

    .config-form .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group .btn {
        border-radius: 10px;
        margin-top: 0.5rem;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
}

/* Website Config Initial View styles */
.config-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(57, 73, 171, 0.1), rgba(26, 35, 126, 0.1));
    border-radius: 15px;
    color: #3949ab;
}

.website-selector-wrapper {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(57, 73, 171, 0.1);
    transition: all 0.3s ease;
}

.website-selector-wrapper:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-select-lg {
    height: 60px;
    border: 2px solid rgba(57, 73, 171, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    padding: 0 1.5rem;
    background-position: right 1.5rem center;
    transition: all 0.3s ease;
}

.form-select-lg:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.1);
}

.empty-state {
    color: #6c757d;
}

.empty-state i {
    opacity: 0.5;
}

.help-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(57, 73, 171, 0.1);
    transition: all 0.3s ease;
}

.help-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.help-card ul li {
    position: relative;
    padding-left: 1.5rem;
}

.help-card ul li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
}

@media (max-width: 768px) {
    .config-icon {
        width: 50px;
        height: 50px;
    }

    .website-selector-wrapper {
        padding: 1rem !important;
    }

    .form-select-lg {
        height: 50px;
        font-size: 0.9rem;
    }

    .help-card {
        margin-bottom: 1rem;
    }
}