/* Enhanced Domain Registration Styles - Add to your existing domainstyle.css */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Navigation Menu Styles */
.navbar {
    background-color: #0066b3;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: #003366;
    color: #fff;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 3px solid #ff6600;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:hover {
    background-color: #0066b3;
    color: #ffffff;
}

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

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #0066b3;
        flex-direction: column;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #1a5c9e;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #004b8d;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-item {
        padding-left: 40px;
        color: #fff;
        border-bottom-color: #1a5c9e;
    }
}

/* Arrow indicator for dropdown */
.dropdown > .nav-link::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .dropdown.active > .nav-link::after {
        transform: rotate(180deg);
    }
}
/*----------end of nav------------------------*/

main {
    margin-top: 80px;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #0066b3 0%, #003366 100%);
    border-radius: 8px;
    margin-bottom: 3rem;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    background: #e65c00;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #0066b3;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #0066b3;
    margin-bottom: 1rem;
}

/* Domain Checker Section */
.domain-checker {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.domain-checker h2 {
    text-align: center;
    color: #0066b3;
    margin-bottom: 1rem;
}

.domain-search {
    max-width: 600px;
    margin: 2rem auto;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

#domainInput {
    flex: 1;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

#extensionSelect {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
    outline: none;
}

#checkButton {
    background: #0066b3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#checkButton:hover:not(:disabled) {
    background: #0056a3;
    transform: translateY(-2px);
}

#checkButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.domain-result {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 5px;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.available {
    background: #4caf50;
    color: white;
}

.unavailable {
    background: #f44336;
    color: white;
}

.checking {
    background: #ff9800;
    color: white;
}

/* Tanzanian Extension Highlights */
.extensions {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.extensions h2 {
    text-align: center;
    color: #0066b3;
    margin-bottom: 2rem;
}

.extensions .extension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.extension-item {
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
}

.extension-item.highlight-tz {
    background: #0066b3 !important;
    color: white !important;
    font-weight: 700;
    position: relative;
    border-color: #0066b3;
    box-shadow: 0 4px 15px rgba(0, 102, 179, 0.3);
}

.extension-item.highlight-tz::after {
    content: "🇹🇿";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2em;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: #0066b3;
}

.extension-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.extension-item.highlight-tz:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 179, 0.4);
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.contact-section h2 {
    text-align: center;
    color: #0066b3;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.contact-item i {
    font-size: 2rem;
    color: #0066b3;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #0066b3;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* Download Section */
.download-section {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.download-section h2 {
    text-align: center;
    color: #0066b3;
    margin-bottom: 1rem;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.download-button {
    background: #0066b3;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.download-button:hover {
    background: #0056a3;
    transform: translateY(-2px);
}

.form-preview {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 5px;
    margin-top: 2rem;
    text-align: left;
}

.form-preview h3 {
    color: #0066b3;
    margin-bottom: 1rem;
    text-align: center;
}

.form-preview ul {
    list-style: none;
    padding: 0;
}

.form-preview li {
    padding: 0.5rem 0;
    color: #555;
}

.form-preview li i {
    color: #0066b3;
    margin-right: 0.5rem;
}

/* Bulk Domain Check Styles */
.bulk-check-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bulk-check-container h3 {
    color: #0066b3;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.extension-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.extension-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e0e0e0;
    font-weight: 500;
}

.extension-checkboxes label:hover {
    background-color: #e3f2fd;
    border-color: #0066b3;
    transform: translateY(-1px);
}

.extension-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0066b3;
}

#bulkCheckButton {
    background: #0066b3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

#bulkCheckButton:hover {
    background: #0056a3;
    transform: translateY(-2px);
}

#bulkCheckButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Bulk Results Grid */
.bulk-results {
    margin-top: 30px;
}

.bulk-results h3 {
    color: #0066b3;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.bulk-results-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.bulk-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bulk-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.bulk-result-item.available {
    border-color: #4caf50;
    background: #4caf50;
    color: white;
}

.bulk-result-item.unavailable {
    border-color: #f44336;
    background: #f44336;
    color: white;
}

.domain-name {
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 0.5px;
}

.domain-status {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.register-btn-small, .whois-btn-small {
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.register-btn-small {
    background: rgba(255,255,255,0.95);
    color: #333;
    border: 2px solid rgba(255,255,255,0.8);
}

.whois-btn-small {
    background: rgba(255,255,255,0.25);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.register-btn-small:hover, .whois-btn-small:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,1);
    color: #333;
}

/* Enhanced Suggestion Styles */
.suggestions {
    margin-top: 30px;
}

.suggestions h3 {
    color: #0066b3;
    margin-bottom: 25px;
    font-size: 1.4em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.suggestion-item.suggestion-available {
    border-color: #4caf50;
    background: #f8fff9;
}

.suggestion-item.suggestion-available:hover {
    background: #e8f5e8;
    transform: translateY(-2px);
    cursor: pointer;
}

.suggestion-item.suggestion-taken {
    border-color: #f44336;
    background: #fff8f8;
    opacity: 0.8;
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.suggestion-content strong {
    font-size: 1.1em;
    color: #333;
    letter-spacing: 0.5px;
}

.suggestion-status {
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestion-status.available {
    color: #4caf50;
}

.suggestion-status.taken {
    color: #f44336;
}

.suggestion-actions {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

/* Loading Animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: inherit;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid currentColor;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    #domainInput, #extensionSelect, #checkButton {
        width: 100%;
        min-width: unset;
    }
    
    .bulk-result-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .domain-actions {
        justify-content: center;
    }
    
    .extension-checkboxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .suggestion-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .suggestion-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .extensions .extension-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bulk-check-container {
        padding: 20px;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .extension-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .extensions .extension-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .domain-name {
        font-size: 1em;
        word-break: break-all;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

section {
    opacity: 0;
    transform: translateY(30px);
}