/* Custom styles to enhance the Alpha template */

/* Form message styling */
.form-message {
    margin-top: 1em;
    padding: 0.5em;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Dashboard enhancement styles */
.credential-card {
    margin-bottom: 1.5em;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.credential-card .card-header {
    background-color: #f5f5f5;
    padding: 1em;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.credential-card .card-body {
    padding: 1em;
}

.credential-card .card-footer {
    padding: 0.5em 1em;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
}

/* File upload zone */
.file-upload-zone {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 2em;
    text-align: center;
    margin: 1em 0;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.file-upload-zone:hover,
.file-upload-zone.active {
    border-color: #5480f1;
    background-color: #f0f4ff;
}

.file-upload-zone input[type="file"] {
    display: none;
}

.file-list {
    margin-top: 1em;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 0.5em;
    background-color: white;
}

.file-item .file-name {
    flex-grow: 1;
    margin-left: 0.5em;
}

.file-item .file-actions {
    display: flex;
    gap: 0.5em;
}

/* Sensitive data masking */
.masked-data {
    font-family: monospace;
    letter-spacing: 0.15em;
    background-color: #f8f8f8;
    padding: 0.25em 0.5em;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.masked-data::after {
    content: '👁️';
    position: absolute;
    right: 0.5em;
    opacity: 0.5;
}

.masked-data.revealed::after {
    opacity: 1;
}

/* Subscription banner */
.subscription-banner {
    background-color: #f0f9ff;
    border: 1px solid #bde0fe;
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subscription-banner.trial {
    background-color: #fff8e1;
    border-color: #ffe082;
}

.subscription-banner.expired {
    background-color: #ffebee;
    border-color: #ef9a9a;
}

/* Next of kin section */
.next-of-kin-card {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1.5em;
}

.next-of-kin-card.active {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
}

/* Header and Navigation Styles */
header {
    background-color: #343a40;
    color: #fff;
    padding: 1rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hamburger menu - highly visible on mobile */
.menu-toggle {
    display: block;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 8px;
    z-index: 100;
    cursor: pointer;
    margin-left: auto; /* Push to right side */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Hide mobile menu by default */
#mainNavMenu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #343a40;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 99;
}

#mainNavMenu.active {
    display: flex;
}

#mainNavMenu li {
    border-top: 1px solid rgba(255,255,255,0.1);
}

#mainNavMenu li a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
}

#mainNavMenu li a:hover {
    background-color: rgba(255,255,255,0.1);
}

#mainNavMenu .cta-button {
    background-color: #007bff;
    color: white;
    margin: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: #e9ecef;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #343a40;
}

.hero p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.cta-button-large {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button-large:hover {
    background-color: #218838;
}

/* Features Section */
.features-overview {
    text-align: center;
    margin-bottom: 2rem;
}

.features-overview h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.feature-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.feature-item h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

/* Pricing Section */
.pricing-overview {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-overview h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.price-plan {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.price-plan h3 {
    margin-bottom: 0.5rem;
}

.price-plan .price {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.price-plan ul {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
}

.price-plan ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.price-plan ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
}

.price-plan .cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.price-plan .cta-button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #adb5bd;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Media query for desktop */
@media (min-width: 769px) {
    /* Header & Navigation */
    .menu-toggle {
        display: none;
    }
    
    #mainNavMenu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        box-shadow: none;
        background-color: transparent;
        margin-left: auto;
    }
    
    #mainNavMenu li {
        border-top: none;
        margin-left: 1.5rem;
    }
    
    #mainNavMenu li a {
        padding: 0.5rem;
        display: inline-block;
    }
    
    #mainNavMenu .cta-button {
        margin: 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Features Grid */
    .features-overview > div {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-item {
        margin-bottom: 0;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .features-overview > div {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero {
        padding: 5rem 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}