/* Global Styles */
:root {
    --primary-color: #1877f2;
    --primary-dark: #166fe5;
    --secondary-color: #42b72a;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #1c1e21;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.text-gradient {
       background: linear-gradient(135deg, #ffffff 0%, #b1a2c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 6px rgba(24, 119, 242, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(24, 119, 242, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 50px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.dashboard-preview {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    transform: rotateX(180deg);
}

.wave-divider path {
    fill: #ffffff;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.badge-primary-soft {
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.auth-card .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.25);
}

.auth-card .input-group-text {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.auth-card .input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.toggle-password {
    border-radius: 0 8px 8px 0;
    border: 1px solid #e0e0e0;
    border-left: none;
}

/* Dashboard */
.dashboard-body {
    background: #f8f9fa;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar.active {
    margin-left: -280px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.user-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.user-details h5 {
    margin: 0;
    font-size: 1rem;
}

.nav-menu {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: linear-gradient(to right, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0.05));
    color: var(--primary-color);
}

.nav-link i:first-child {
    width: 20px;
    margin-right: 1rem;
}

.nav-submenu {
    list-style: none;
    padding-left: 3rem;
}

.nav-submenu li a {
    display: block;
    padding: 0.5rem 0;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-submenu li a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 1.5rem;
    transition: var(--transition);
}

.sidebar.active + .main-content {
    margin-left: 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stats-icon i {
    font-size: 1.5rem;
}

.stats-details h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-details span {
    color: #6c757d;
    font-size: 0.9rem;
}

.stats-trend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

.stats-trend.positive {
    background: rgba(66, 183, 42, 0.1);
    color: #42b72a;
}

.stats-trend.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Background Soft Colors */
.bg-primary-soft {
    background: rgba(24, 119, 242, 0.1);
}

.bg-success-soft {
    background: rgba(66, 183, 42, 0.1);
}

.bg-info-soft {
    background: rgba(23, 162, 184, 0.1);
}

.bg-warning-soft {
    background: rgba(255, 193, 7, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.welcome-banner h3 {
    margin-bottom: 0.5rem;
}

.welcome-img {
    max-height: 100px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

/* Facebook Preview */
.facebook-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.preview-info {
    display: flex;
    flex-direction: column;
}

.preview-info span {
    color: #6c757d;
    font-size: 0.85rem;
}

.preview-content {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.preview-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.preview-actions span {
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
}

.preview-actions span i {
    margin-right: 0.5rem;
}

.preview-actions span:hover {
    color: var(--primary-color);
}

/* Queue Status */
.queue-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e9ecef;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-item span {
    color: #6c757d;
}

.queue-item strong {
    color: var(--dark-color);
}

/* Chart Card */
.chart-card {
    height: 100%;
}

.chart-card canvas {
    max-height: 300px;
}

/* Notification System */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #42b72a;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-icon {
    margin-right: 0.75rem;
}

.notification-success .notification-icon i {
    color: #42b72a;
}

.notification-error .notification-icon i {
    color: #dc3545;
}

.notification-info .notification-icon i {
    color: #17a2b8;
}

.notification-warning .notification-icon i {
    color: #ffc107;
}

.notification-content {
    flex: 1;
    font-size: 0.9rem;
}

.notification-close {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
}

.notification-close:hover {
    color: var(--dark-color);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


a{
	text-decoration:none;
}

/* Image Result Cards */
.image-result-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.image-result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.image-result-card .card-img-top {
    border-bottom: 1px solid #e9ecef;
}

.image-result-card .btn-group {
    opacity: 0.9;
    transition: var(--transition);
}

.image-result-card:hover .btn-group {
    opacity: 1;
}

/* API Status Alerts */
#fbTokenStatus,
#unsplashApiStatus {
    transition: var(--transition);
    border-left-width: 4px;
}

#fbTokenStatus.alert-success,
#unsplashApiStatus.alert-success {
    border-left-color: #42b72a;
}

#fbTokenStatus.alert-danger,
#unsplashApiStatus.alert-danger {
    border-left-color: #dc3545;
}

/* Token Expiry */
#tokenExpiry .text-success {
    color: #42b72a !important;
    font-weight: 600;
}

#tokenExpiry .text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

#tokenExpiry .text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Page Selector */
#pageSelector {
    transition: var(--transition);
    margin-top: 0.5rem;
}

/* Stats Display */
#unsplashStats .border {
    background: white;
    transition: var(--transition);
}

#unsplashStats .border:hover {
    background: #f8f9fa;
}

/* Test Image Results Grid */
#testImageResults {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* API Helper Cards */
.card.border-info .card-header,
.card.border-success .card-header {
    font-weight: 600;
}

.card.border-info ol,
.card.border-success ol {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.card.border-info li,
.card.border-success li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #testImageResults .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .modal-dialog.modal-lg {
        margin: 0.5rem;
    }
    
    .card.border-info .card-body,
    .card.border-success .card-body {
        padding: 1rem;
    }
    
    #unsplashStats .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    display: none;
    z-index: 1000;
}

[data-tooltip]:hover:before {
    display: block;
}

/* Account Information Modal Styles */
.account-status-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.status-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.stat-card-small {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card-small .stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-card-small .stat-icon i {
    font-size: 1.2rem;
}

.stat-card-small .stat-details h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-small .stat-details span {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-status-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.token-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.usage-stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.usage-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.usage-details {
    display: flex;
    flex-direction: column;
}

.usage-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.security-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.danger-zone .card {
    border: 1px solid rgba(220, 53, 69, 0.2);
    background: rgba(220, 53, 69, 0.02);
}

.danger-zone .card:hover {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(220, 53, 69, 0.05);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .account-status-banner {
        padding: 1rem;
    }
    
    .status-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-card-small {
        padding: 0.75rem;
    }
    
    .stat-card-small .stat-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    .stat-card-small .stat-details h3 {
        font-size: 1.1rem;
    }
}




/* Schedule Calendar Styles */
.schedule-calendar {
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8f9fa;
    margin: 2px;
    position: relative;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.calendar-day.today {
    background: #e7f3ff;
    border: 2px solid #1877f2;
    font-weight: bold;
}

.calendar-day.has-posts {
    background: #e3f2fd;
    cursor: pointer;
}

.calendar-day.has-posts:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

.calendar-day.empty {
    background: transparent;
}

.day-number {
    font-weight: 500;
    line-height: 1;
}

.post-indicator {
    font-size: 0.7rem;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 10px;
    min-width: 18px;
}

.calendar-legend {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Upcoming Posts List */
.upcoming-post-card {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.upcoming-post-card.next {
    border-left-color: #1877f2;
    background: #f0f7ff;
}

.upcoming-post-card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Quick Stats Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1877f2;
    margin-bottom: 0.25rem;
}

.stat-card small {
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .post-indicator {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
    
    .stat-card h3 {
        font-size: 1.4rem;
    }
}