/**
 * CyberPhishcX Custom Styles
 * Customizações para AdminLTE
 */

/* Brand Colors */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --cyber-blue: #0056b3;
    --cyber-dark: #2c3e50;
}

/* Logo customizations */
.brand-link {
    border-bottom: 1px solid #4f5962;
}

.brand-link .brand-image {
    margin-top: -2px;
    margin-right: .5rem;
    height: 33px;
    width: 33px;
}

.brand-text {
    font-weight: 600!important;
    color: #fff!important;
    font-size: 1.1rem;
}

/* Sidebar customizations */
.main-sidebar {
    background: linear-gradient(180deg, var(--cyber-dark) 0%, #34495e 100%);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--cyber-blue);
    color: #fff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
    background-color: rgba(0, 86, 179, 0.3);
    color: #fff;
}

/* Navigation header styling */
.nav-header {
    background-color: rgba(0, 0, 0, 0.1);
    color: #adb5bd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

/* Cards customizations */
.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: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Info boxes */
.info-box {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.25rem;
    background: #fff;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.info-box-icon {
    border-radius: 0.25rem 0 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-app {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.3s ease;
}

.btn-app:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Navbar customizations */
.navbar-white {
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-nav .nav-link {
    color: #495057;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* User menu */
.user-menu .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.user-header {
    background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.user-footer {
    padding: 0.5rem;
    background-color: #f8f9fa;
}

/* Dashboard specific styles */
.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Charts container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Timeline styles */
.timeline-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 9px;
    height: 9px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Products list (activity feed) */
.products-list .item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 0;
}

.products-list .item:last-child {
    border-bottom: none;
}

.product-img {
    width: 50px;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    margin-left: 60px;
}

.product-title {
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
}

.product-title:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-description {
    font-size: 0.875rem;
    color: var(--secondary-color);
    display: block;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .info-box-number {
        font-size: 1.5rem;
    }
    
    .btn-app {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom alerts */
.alert {
    border: none;
    border-radius: 0.375rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.1);
}

.alert-info {
    border-left-color: var(--info-color);
    background-color: rgba(23, 162, 184, 0.1);
}

/* Footer */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Print styles */
@media print {
    .main-sidebar,
    .main-header,
    .main-footer {
        display: none;
    }
    
    .content-wrapper {
        margin-left: 0;
    }
}
