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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    color: #333;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    overflow-y: auto;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.menu-item.active {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.menu-item i {
    margin-right: 10px;
    width: 16px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(255,255,255,0.05);
}

.tool-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

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

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

.form-col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 250px;
}

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

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    padding: 5px 5px;
    margin: 5px 0px 5px 0px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.progress-container {
    margin: 15px 0;
    display: none; /* Hidden by default */
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.results-section {
    flex: 1;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    text-align: right;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.filter-buttons {
    display: flex;
    gap: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.filter-btn {
    padding: 8px 12px;
    background: white;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 1px solid #e0e0e0;
}

.filter-btn:last-child {
    border-right: none;
}

.filter-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.results-count {
    font-weight: bold;
    color: #2c3e50;
}

.results-container {
    height: 250px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
}

.domain-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.domain-item:hover {
    background-color: #f8f9fa;
}

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

.domain-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.domain-link {
    text-decoration: none;
    color: inherit;
}

.domain-link:hover {
    color: #667eea;
}

.status-available {
    color: #27ae60;
    font-weight: bold;
    font-size: 12px;
}

.status-registered {
    color: #e74c3c;
    font-weight: bold;
    font-size: 12px;
}

.status-unknown {
    color: #ed8936;
    font-weight: bold;
    font-size: 12px;
}

.status-checking {
    color: #1d37ff;
    font-weight: bold;
    font-size: 12px;
}

.status-error {
    color: #e67e22;
    font-weight: bold;
    font-size: 12px;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f39c12;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.generator-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e0e0;
}

.generator-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(-20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        width: 280px;
    }

    .sidebar.open {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content {
        width: 100%;
    }

    .content-area {
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }
}






.content-row{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}
.generator-section{
    flex: 0 0 35%;
}





.status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.heart-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.heart-icon.favorited {
    opacity: 1;
    animation: heartbeat 0.3s ease;
}

.copy-icon {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.copy-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.domain-item {
    justify-content: space-between;
    align-items: center;
}

.link-icon {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
    text-decoration: none;
}
.link-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.text-link {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
    text-decoration: none;
    color: #333333;
    font-style: italic;
}
.text-link:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}