/* Custom styles for Social Media Manager */

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";;
    font-size: 14px;
}

.sidebarMenu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    max-width: 250px;
    width: 100%;
    background-color: #f8f8f8;
}
.mainContent{
    padding-left:270px;

}
.sidebarMenu .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0.5rem;
}

.sidebarMenu .nav-link:hover {
    color: #444;
    background-color:  #f1f1f1;
}

.sidebarMenu .nav-link.active {
    color: #444;
    background-color: #f1f1f1;
}

.sidebarMenu .nav-link i {
    margin-right: 0.5rem;
}

/* User Account Section */
.user-account-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.user-profile-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.user-profile-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.user-avatar {
    margin-right: 0.75rem;
}

.user-avatar i {
    font-size: 1rem;
    color: #6c757d;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-email {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.user-dropdown {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    transform: none !important;
    margin-left:240px;
}

/* Đảm bảo dropdown hiển thị bên phải khi sử dụng dropdown-menu-end */
.user-dropdown.dropdown-menu-end {
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Đảm bảo dropdown có thể hiển thị bên ngoài sidebar */
.sidebarMenu {
    overflow: visible !important;
}


.user-account-section {
    overflow: visible !important;
}

/* Tăng z-index để dropdown hiển thị trên tất cả các phần tử khác */
.user-dropdown {
    z-index: 9999 !important;
}

/* Ghi đè hoàn toàn Bootstrap positioning */
.user-dropdown.dropdown-menu.show {
    position: absolute !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
    margin-left: 240px !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: 0 !important;
}

.user-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.user-dropdown .dropdown-item i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

/* Adjust main sidebar padding to accommodate user account section */
.sidebarMenu .position-sticky {
    padding-bottom: 5rem;
}

/* Ensure dropdown is visible */
.sidebarMenu .dropdown-menu.show {
    display: block !important;
}



/* Card improvements */
.card {
    border: 1px #dee2e6 solid;
    box-shadow: none;
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Form improvements */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Platform selection modal styles */
.platform-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.platform-card:active {
    transform: scale(0.98);
}

.platform-card.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.platform-card.selected::before {
    transform: scaleX(1);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

.platform-card.selected .platform-icon {
    color: #0056b3;
}

.platform-info h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #495057;
}

.platform-info small {
    color: #6c757d;
    line-height: 1.4;
}

/* Step navigation */
.step-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom app form */
.custom-app-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* System app card */
.system-app-info .card {
    border: 2px solid #17a2b8;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.system-app-info .card-title {
    color: #17a2b8;
    font-weight: 600;
}

/* Loading animation */
#loading {
    padding: 40px 20px;
}

#loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Continue section */
#continue-section {
    animation: slideUp 0.3s ease-out;
}

#continue-section .alert {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

#continueBtn {
    padding: 12px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

#continueBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Modal improvements */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}


.mainContent .h2{
    font-size: 16px;
}

.mainContent .card-title{
    font-size: 14px;
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Image preview */
.image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Channel icons */
.channel-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-published {
    background-color: #28a745;
}

.status-pending {
    background-color: #ffc107;
}

.status-failed {
    background-color: #dc3545;
}
.navbar-brand{
    font-size: 16px;
    font-weight: 500;
}


/* Responsive improvements */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    .mainContent {
        margin-top: 0;
        padding-left: 0;
    }
}