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

:root {
    --primary-blue: #1e90ff;
    --success-green: #00c851;
    --warning-orange: #ff8800;
    --info-purple: #8e44ad;
    --danger-red: #ff4444;

    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border: #ecf0f1;
}

/* Flat Design Global */
html, body, * { box-shadow: none !important; text-shadow: none !important; background-image: none !important; }

body {
    /* Use system font stack to avoid external font fetches */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Improved spacing system */
.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-padding-sm {
        padding: 40px 0;
    }
}

/* Typography */
h1, h2, h3, h4 {
    /* Prefer headline feel; fall back to system stack */
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 30px; color: var(--text-primary); position: static; display: block; padding-bottom: 0; }

h2::after { display: none; }

.section-title {
    margin-bottom: 60px;
}

h3 { font-size: 1.75rem; font-weight: 600; }

p {
    margin-bottom: 15px;
}

/* Header */
header { background-color: #fff; position: sticky; top: 0; z-index: 100; padding: 10px 0; border-bottom: 2px solid var(--border); }

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.logo .ip {
    color: #0056b3;
    font-weight: 700;
}

.logo .group {
    color: #0056b3;
    font-weight: 700;
}

.logo p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
    margin-top: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    background-color: #0056b3;
}

.btn-login {
    background-color: #0056b3 !important;
    color: white !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
}

.btn-login:hover {
    background-color: #003d82 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

/* Base styles for primary and secondary buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: center;
    min-width: 180px;
}

/* Primary button styling - white background with blue text */
.btn-primary { background: var(--primary-blue); color: #fff; font-weight: 700; }

/* Primary button hover effect - light blue background and lift effect */
.btn-primary:hover { background: #1a7ee0; transform: none; }

/* Secondary button styling - match primary for a consistent look */
.btn-secondary { background: var(--text-primary); color: #fff; font-weight: 700; }

/* Secondary button hover effect - same as primary */
.btn-secondary:hover { background: #22374a; transform: none; }

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Sections */
.services,
.why-choose,
.testimonials,
.login-section,
.registration-section {
    padding: 100px 0;
}

.services { background-color: #fff; }

.why-choose { background-color: #eef5ff; }

.testimonials { background-color: #fff; text-align: center; padding: 120px 0; }

.login-section,
.registration-section {
    background-color: #f8f9fa;
}

/* CTA Section */
.cta-section {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 16px 40px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary:hover { background-color: #eaf4ff; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0056b3;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.service-card { background-color: var(--card-bg); border-radius: 8px; padding: 32px 24px; text-align: center; position: relative; overflow: hidden; border: 2px solid var(--border); transition: background-color .2s ease; }

.service-card::before { display: none; }

.service-card:hover { transform: none; background: #fcfdff; }

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 20px; }

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #222;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 86, 179, 0.08);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.12);
}

.feature-icon {
    background-color: rgba(0, 86, 179, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.feature:hover .feature-icon {
    background-color: #0056b3;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: #0056b3;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon i {
    color: white;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
    width: 100%;
}

.feature p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    width: 100%;
}

/* Testimonials */
.testimonials { background: var(--bg); position: relative; }

.testimonials::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 120px;
    color: rgba(0, 86, 179, 0.05);
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    border: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.15);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 25px;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial .client {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.client-info h4 {
    margin-bottom: 5px;
    color: #222;
    font-size: 1.1rem;
}

.client-info p {
    font-style: normal;
    margin-bottom: 0;
    color: #0056b3;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Star ratings for testimonials */
.testimonial::after {
    content: "★★★★★";
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
}

/* Login/Registration Forms */
.login-section,
.registration-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.login-container,
.registration-container {
    max-width: 550px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.login-container::before,
.registration-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0056b3, #00a8ff);
}

.login-header,
.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2,
.registration-header h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #222;
}

.login-header p,
.registration-header p {
    color: #666;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 1rem;
}

.input-with-icon {
    position: relative;
}

/* Input with icon - Position icons clearly to the LEFT of text boxes */
.input-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-with-icon i {
    position: absolute;
    left: -30px; /* Position icon to the LEFT of the input box */
    top: 50%;
    transform: translateY(-50%);
    color: #0056b3;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 16px 20px; /* Normal padding, no left padding needed */
    border: 2px solid #eef2f7;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    background-color: #fff;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    background-color: #fff;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
}

.checkbox-group input {
    width: auto;
    accent-color: #0056b3;
}

.checkbox-group label {
    margin-bottom: 0;
    color: #555;
    cursor: pointer;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.form-footer a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    text-decoration: underline;
    color: #003d82;
}

.form-footer p {
    margin: 15px 0 0;
    color: #666;
}

.full-width {
    width: 100%;
}

@media (max-width: 768px) {
    .login-container,
    .registration-container {
        padding: 35px 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .input-with-icon i {
        left: -25px; /* Adjust position for mobile */
        font-size: 1rem;
    }
    
    .input-with-icon input,
    .input-with-icon select {
        padding: 14px 15px; /* Normal padding for mobile */
    }
}

/* Dashboard */
.dashboard-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.dashboard-header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.dashboard-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #222;
}

#welcomeMessage {
    color: #0056b3;
    font-size: 1.2rem;
    font-weight: 500;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card { background: var(--primary-blue); border-radius: 8px; padding: 22px; display: flex; align-items: center; gap: 20px; transition: background-color 0.2s ease; border: none; color: #fff; }

.stat-card:hover { transform: none; filter: brightness(0.95); }

.stat-icon { background: transparent; color: #fff; width: 70px; height: 70px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }

.stat-info h3 { font-size: 3rem; margin-bottom: 5px; color: #fff; font-weight: 800; }

.stat-info p {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-card { background: var(--card-bg); border-radius: 8px; padding: 24px; margin-bottom: 24px; border: 2px solid var(--border); }

.dashboard-card:hover { transform: none; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

.card-header h3 {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: #222;
}

.view-all {
    color: #0056b3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

.view-all i {
    font-size: 0.8rem;
}

.renewals-list,
.activity-list,
.account-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.renewal-item,
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.renewal-item:hover,
.activity-item:hover {
    background-color: #edf2ff;
    transform: translateY(-2px);
}

.renewal-details h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #222;
}

.renewal-details p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
}

.renewal-date span {
    background: var(--primary-blue);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.activity-icon { background: var(--primary-blue); color: white; width: 50px; height: 50px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 20px; flex-shrink: 0; }

.activity-details {
    flex: 1;
}

.activity-details p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.activity-time {
    font-size: 0.85rem;
    color: #666;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #444;
}

.summary-value {
    font-weight: 500;
    color: #222;
}

.summary-value.active {
    color: #28a745;
    font-weight: 600;
}

.account-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #444;
    font-weight: 500;
}

.action-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
    color: white;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
}

.action-btn i {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: #fff;
    padding: 70px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #00a8ff);
    border-radius: 3px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #00a8ff);
    border-radius: 3px;
}

.footer-section p {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.footer-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0056b3;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #00a8ff;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-icons a {
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.95rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Services Detail Section */
.services-details {
    margin-top: 50px;
}

.service-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.service-icon {
    background: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #222;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.service-text ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-text ul li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    color: #444;
}

.service-text ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #0056b3;
    font-size: 1.2rem;
}

/* Process Section */
.process-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    display: flex;
    gap: 20px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

.step-number {
    background: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Email Settings Form Styles */
.email-settings {
    padding: 20px 0;
}

.email-settings form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ip-asset-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto;
    }
    
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: auto;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 30px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-padding-sm {
        padding: 50px 0;
    }
    
    .services, .why-choose, .testimonials, .login-section, .registration-section {
        padding: 70px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .login-container,
    .registration-container {
        padding: 40px 25px;
        margin: 0 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 8px;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .service-detail {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: auto;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 30px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .services, .why-choose, .testimonials, .login-section, .registration-section {
        padding: 60px 0;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn {
        padding: 20px 10px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .process-step:not(:last-child)::after {
        bottom: -25px;
        height: 25px;
    }
    
    .service-text ul li {
        padding-left: 30px;
    }
}

/* Operator Dashboard Styles */
.users-list,
.renewals-list,
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-type {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.user-type i {
    width: 20px;
    text-align: center;
    color: #0056b3;
}

.asset-type {
    font-size: 0.85rem;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 5px;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.health-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.health-item:last-child {
    border-bottom: none;
}

.health-status {
    margin-right: 15px;
}

.health-status i {
    font-size: 1.2rem;
}

.health-details {
    flex: 1;
}

.health-status-text {
    font-size: 0.9rem;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

.view-all {
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Clients and Renewals Pages Styles */
.clients-section,
.renewals-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.clients-header,
.renewals-header {
    text-align: center;
    margin-bottom: 30px;
}

.clients-header h2,
.renewals-header h2 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 10px;
}

.search-box {
    position: relative;
    display: inline-block;
}

.search-box input {
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls select,
.filter-controls .search-box {
    margin-bottom: 0;
}

.clients-table-container,
.renewals-table-container {
    overflow-x: auto;
}

.clients-table,
.renewals-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.clients-table th,
.renewals-table th,
.clients-table td,
.renewals-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.clients-table th,
.renewals-table th {
    background-color: #0056b3;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.clients-table tbody tr:hover,
.renewals-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* Organization Cards */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Organization card styling */
.organization-card { background-color: var(--card-bg); border-radius: 8px; padding: 24px; border: 2px solid var(--border); }
.organization-card:hover { transform: none; }
.organization-card--individual { border-top: 6px solid var(--primary-blue); }
.organization-card--law-firm { border-top: 6px solid var(--success-green); }
.organization-card--corporation { border-top: 6px solid var(--warning-orange); }
.organization-card .org-header h4 { color: var(--text-primary); }
.organization-card .org-type { color: var(--text-secondary); font-weight: 600; }

/* Header section of organization cards - contains name and type */
.org-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Action Buttons in Tables - align with primary button look */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid #e0e6ef;
    background-color: #fff;
    color: #2b3a4a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 4px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.action-btn:hover {
    background-color: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.action-btn i {
    font-size: 0.95rem;
    margin-right: 8px;
}

/* Beautiful, theme-tinted variants just on rules tables */
.rules-table .action-btn.action-edit { color: #0056b3; border-color: #cfe0f7; }
.rules-table .action-btn.action-edit:hover { background: #f0f5ff; }

.rules-table .action-btn.action-check { color: #2e7d32; border-color: #cfe8d1; }
.rules-table .action-btn.action-check:hover { background: #eff8f0; }

.rules-table .action-btn.action-delete { color: #c62828; border-color: #f3c9c9; }
.rules-table .action-btn.action-delete:hover { background: #fff0f0; }

.rules-table .action-btn.action-history { color: #6c757d; border-color: #e4e7ea; }
.rules-table .action-btn.action-history:hover { background: #f7f9fb; }

/* On small screens, keep icons visible and hide labels to save space */
@media (max-width: 640px) {
  .rules-table .action-btn span { display: none; }
  .rules-table .action-btn { padding: 10px; }
}

/* Consistent icon styling on all buttons: icon color differs from text and is spaced from label */
/* Button icon color: orange for visual pop */
.btn-primary i,
.btn-secondary i,
.action-btn i {
    color: #ff8c00; /* orange icons */
    margin-right: 8px;
    vertical-align: middle;
}

/* If the icon is the only child (icon-only buttons), remove right margin to keep it centered */
.btn-primary i:only-child,
.btn-secondary i:only-child,
.action-btn i:only-child {
    margin-right: 0;
}

.btn-primary:hover i,
.btn-secondary:hover i,
.action-btn:hover i {
    color: #e67600; /* darker orange on hover */
}

.edit-asset,
.delete-asset {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.edit-asset:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.delete-asset:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.org-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: #222;
    font-weight: 600;
}

.org-type {
    background-color: #0056b3;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.org-stats {
    margin-bottom: 25px;
}

.org-stats p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.95rem;
}

.org-stats i {
    width: 25px;
    color: #0056b3;
}

/* Action buttons container - holds the View and Manage buttons */
.org-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Individual action buttons - View Details and Manage */
.org-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    min-width: 100px;
}

/* Modal Styles */
/* Modal overlay - semi-transparent background that covers the entire screen */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

/* Modal content container - white box that appears in the center of the screen */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

/* Modal header - contains title and close button */
.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal title */
.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

/* Close button for modal - appears as an X in the top right corner */
.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

/* Close button hover effect - changes color to dark gray */
.close-modal:hover {
    color: #333;
}

/* Global Toast Notifications */
#toast-stack { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 10000; }
.toast { min-width: 220px; max-width: 380px; padding: 12px 16px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.15); background: #fff; color: #333; opacity: 0; transform: translateY(-10px); transition: all .3s ease; border-left: 4px solid #00a8ff; font-weight: 500; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-left-color: #2e7d32; }
.toast-error { border-left-color: #c62828; }
.toast-info { border-left-color: #00a8ff; }

/* Modal body - contains the main content of the modal */
.modal-body {
    padding: 30px;
}

/* Modal footer - contains action buttons like Close */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Detail row - used to display label-value pairs in modals */
.detail-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

/* Last detail row - removes margin and border */
.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Detail label - left side of the row with bold text */
.detail-label {
    font-weight: 600;
    width: 150px;
    color: #555;
}

/* Detail value - right side of the row with regular text */
.detail-value {
    flex: 1;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: #0056b3;
}

.user-details, .org-details {
    margin-bottom: 30px;
}

.ip-assets-section, .users-section {
    margin-top: 30px;
}

.ip-assets-section h4, .users-section h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #222;
}

.ip-asset-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.ip-asset-item:last-child {
    margin-bottom: 0;
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.asset-header h5 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.asset-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.asset-type.patent {
    background-color: #d1ecf1;
    color: #0c5460;
}

.asset-type.trademark {
    background-color: #d4edda;
    color: #155724;
}

.asset-type.design {
    background-color: #f8d7da;
    color: #721c24;
}

.asset-details {
    padding-left: 10px;
}

.user-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.user-item:last-child {
    margin-bottom: 0;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #222;
}

.asset-count {
    background-color: #0056b3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.user-assets {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.user-assets h6 {
    margin: 0 0 10px 0;
    color: #444;
}

.user-assets ul {
    margin: 0;
    padding-left: 20px;
}

.user-assets li {
    margin-bottom: 5px;
    color: #666;
}

.user-assets li:last-child {
    margin-bottom: 0;
}

.status-active {
    color: #28a745;
    font-weight: 500;
}

.status-expired {
    color: #dc3545;
    font-weight: 500;
}

.status-pending {
    color: #ffc107;
    font-weight: 500;
}

.rule-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rule-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.rule-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.rule-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rule-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rule-detail:last-child {
    border-bottom: none;
}

.rule-detail .detail-label {
    font-weight: 500;
    color: #555;
    width: 140px;
}

.rule-detail .detail-value {
    flex: 1;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fee-table-container {
    overflow-x: auto;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fee-table th,
.fee-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fee-table th {
    background-color: #0056b3;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.fee-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Settings Page */
.settings-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.settings-header {
    text-align: center;
    margin-bottom: 40px;
}

.settings-header h2 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 700;
}

.settings-content {
    display: flex;
    gap: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-nav {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
}

.settings-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav li {
    border-bottom: 1px solid #eee;
}

.settings-nav a {
    display: block;
    padding: 18px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.settings-nav a:hover,
.settings-nav a.active {
    background-color: #0056b3;
    color: white;
}

.settings-main {
    flex: 1;
    padding: 30px;
}

.system-settings .form-group,
.user-preferences .form-group {
    margin-bottom: 25px;
}

.user-preferences .checkbox-group {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .settings-content {
        flex-direction: column;
    }
    
    .settings-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .settings-main {
        padding: 20px;
    }
}
