/* PT Hara Global Integra - Main Styles */

:root {
    --hgi-blue-dark: #1e3a8a;
    --hgi-blue-light: #3b82f6;
    --hgi-green-light: #10b981;
    --hgi-green-dark: #047857;
    --brand-gradient: linear-gradient(to right, #1e3a8a, #3b82f6, #10b981, #047857);
}

.brand-gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-brand-gradient {
    background: var(--brand-gradient);
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container-custom {
        padding: 0 2rem;
    }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll-reverse {
    animation-direction: reverse;
}

.animate-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.mask-linear-gradient {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.sector-card-blue:hover { border-color: var(--hgi-blue-dark); }
.sector-card-green:hover { border-color: var(--hgi-green-light); }
.sector-card-purple:hover { border-color: #9333ea; }
.sector-card-orange:hover { border-color: #ea580c; }
.sector-card-cyan:hover { border-color: #0891b2; }

.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.admin-sidebar {
    min-height: 100vh;
}

.admin-nav-link {
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.admin-nav-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--hgi-blue-light);
    font-weight: 500;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.toast {
    animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.table-hover tr:hover {
    background-color: #f9fafb;
}

.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--hgi-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.blog-content {
    color: #374151;
    line-height: 1.8;
    font-size: 1rem;
}

.blog-content p {
    margin: 0 0 1rem 0;
}

.blog-content h2 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.blog-content h3 {
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1rem 1.25rem;
}

.blog-content li {
    margin: 0.25rem 0;
}

.blog-content a {
    color: var(--hgi-blue-light);
    text-decoration: underline;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success { background-color: #d1fae5; color: #047857; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-error { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #dbeafe; color: #1e40af; }

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-switch.active {
    background-color: var(--hgi-green-light);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(59, 130, 246, 0.25);
    border-top-color: rgba(59, 130, 246, 1);
    border-radius: 9999px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
}

