/* Custom styles for Rank Tracker */

body {
    background-color: #f8f9fa;
}

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

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

.table th {
    border-top: none;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

/* Rank status colors */
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

.bg-success { background-color: #28a745 !important; }
.bg-warning { background-color: #ffc107 !important; }
.bg-danger { background-color: #dc3545 !important; }

/* Loading states */
.btn:disabled {
    opacity: 0.6;
}

/* Chart container */
#rankChart {
    max-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.15s ease-in-out;
}
body {
    background-color: #f8f9fa;
}

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

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

.table th {
    border-top: none;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

/* Rank status colors */
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

.bg-success { background-color: #28a745 !important; }
.bg-warning { background-color: #ffc107 !important; }
.bg-danger { background-color: #dc3545 !important; }

/* New Domain Dashboard Styles */
.domain-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.metric {
    padding: 0.5rem 0;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keywords-preview {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.keywords-preview .d-flex {
    font-size: 0.875rem;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Domain detail page */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Table improvements */
.table-responsive {
    border-radius: 0.375rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
}

/* Chart container */
#rankChart {
    max-height: 400px;
}

/* Quick actions card */
.card .bi {
    margin-right: 0.5rem;
}

/* Empty state styling */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Dashboard grid improvements */
.col-md-6.col-lg-4 {
    min-height: 300px;
}

.card.h-100 {
    height: 100% !important;
}

/* Button improvements */
.btn-outline-success:hover,
.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
    transform: translateY(-1px);
    transition: transform 0.1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .domain-card {
        margin-bottom: 1rem;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Statistics cards on domain detail */
.stats-card {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.stats-card.success {
    border-left-color: #28a745;
}

.stats-card.warning {
    border-left-color: #ffc107;
}

.stats-card.danger {
    border-left-color: #dc3545;
}

body {
    background-color: #f8f9fa;
}

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

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

.table th {
    border-top: none;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

/* Rank status colors */
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

.bg-success { background-color: #28a745 !important; }
.bg-warning { background-color: #ffc107 !important; }
.bg-danger { background-color: #dc3545 !important; }

/* New Domain Dashboard Styles */
.domain-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.metric {
    padding: 0.5rem 0;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keywords-preview {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.keywords-preview .d-flex {
    font-size: 0.875rem;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Domain detail page */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Table improvements */
.table-responsive {
    border-radius: 0.375rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
}

/* Chart container */
#rankChart {
    max-height: 400px;
}

/* Quick actions card */
.card .bi {
    margin-right: 0.5rem;
}

/* Empty state styling */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Dashboard grid improvements */
.col-md-6.col-lg-4 {
    min-height: 300px;
}

.card.h-100 {
    height: 100% !important;
}

/* Button improvements */
.btn-outline-success:hover,
.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
    transform: translateY(-1px);
    transition: transform 0.1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .domain-card {
        margin-bottom: 1rem;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Ranked page information styling */
.ranked-page-info {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 3px solid #28a745;
}

.ranked-page-cell {
    max-width: 300px;
}

.ranked-page-cell .btn {
    margin-bottom: 0.25rem;
}

.ranked-page-cell small {
    display: block;
    line-height: 1.2;
}

/* Page title styling */
.ranked-page-info .text-primary {
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
    margin-bottom: 0.5rem;
}

/* Page description styling */
.ranked-page-info .text-muted {
    font-size: 0.8rem;
    line-height: 1.3;
    display: block;
    margin-bottom: 0.5rem;
}

/* Page URL styling */
.ranked-page-info .text-success {
    font-size: 0.75rem;
    font-family: monospace;
    word-break: break-all;
}

/* Table cell spacing for ranked pages */
.table .ranked-page-cell {
    padding: 0.5rem;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .ranked-page-cell {
        max-width: 200px;
    }
    
    .ranked-page-info {
        padding: 0.5rem;
    }
    
    .ranked-page-info .text-primary {
        font-size: 0.85rem;
    }
    
    .ranked-page-info .text-muted {
        font-size: 0.75rem;
    }
}
/* Dashboard-specific styles - Add these to your existing app/static/css/style.css */

/* Metrics styling */
.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.metric-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Domain card styling */
.domain-card {
    transition: transform 0.2s ease-in-out;
    border-radius: 8px;
}

.domain-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Border styling for assigned domains */
.border-info {
    border-left: 4px solid #17a2b8 !important;
}

/* Role badges */
.badge {
    font-size: 0.8em;
}

/* Keywords preview */
.keywords-preview {
    max-height: 120px;
    overflow-y: auto;
}

.keywords-preview .badge-sm {
    font-size: 0.7em;
    padding: 0.2em 0.4em;
}

/* Team overview card */
.card.border-primary {
    border-width: 2px;
}

/* Quick actions responsive layout */
@media (max-width: 768px) {
    .quick-actions .col-md-2 {
        margin-bottom: 0.5rem;
    }
}

/* Animation for card hover effects */
@keyframes cardLift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}

.domain-card.lifted {
    animation: cardLift 0.2s ease-in-out forwards;
}

/* Loading state for refresh button */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #28a745;
}

.status-inactive {
    background-color: #dc3545;
}

.status-pending {
    background-color: #ffc107;
}