/* SB Admin 2 Inspired Styling for Aksjeeiebok */

:root {
    --primary: #4e73df;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --gradient-primary: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    --gradient-secondary: linear-gradient(180deg, #858796 10%, #60616f 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #858796;
    background-color: #f8f9fc;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #5a5c69;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4e73df !important;
}

.navbar-nav .nav-link {
    color: #858796;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #4e73df;
}

.language-dropdown {
    display: flex;
    align-items: center;
}

.language-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #858796;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.language-dropdown .dropdown-toggle:hover {
    color: #4e73df;
}

.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-search input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 50px;
}

.hero-search input:focus {
    outline: none;
}

/* Stats Cards */
.stats-section {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4e73df;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #858796;
    font-weight: 700;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 0.35rem;
    border-left: 4px solid #4e73df;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.25);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #5a5c69;
}

.feature-card p {
    color: #858796;
    margin-bottom: 0;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    height: 100%;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.25);
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid #4e73df;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #4e73df;
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: #858796;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3e6f0;
    color: #858796;
}

.pricing-features li:before {
    content: '✓';
    color: #1cc88a;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.35rem;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    box-shadow: 0 0.5rem 1rem rgba(78, 115, 223, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(180deg, #1cc88a 10%, #13855c 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #4e73df;
    color: #4e73df;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: none;
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.35rem 0.35rem 0 0;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

/* Table */
.table {
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #e3e6f0;
    color: #5a5c69;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-top: 1px solid #e3e6f0;
    color: #858796;
}

.table tbody tr:hover {
    background: #f8f9fc;
}

/* Footer */
.footer {
    background: #2e2f3e;
    color: #8a8d93;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: #8a8d93;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #3e3f4e;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* Alerts */
.alert {
    border-radius: 0.35rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Utilities */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.3) !important;
}

.rounded {
    border-radius: 0.35rem !important;
}

.text-primary {
    color: #4e73df !important;
}

.text-success {
    color: #1cc88a !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #f8f9fc;
}

::-webkit-scrollbar-thumb {
    background: #d1d3e2;
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #4e73df;
}
