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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

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

.container.compact {
    max-width: 800px;
    padding: 1rem 1.5rem;
}

.header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: white;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.95;
}

.tagline {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.9;
}

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

.app-card {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.app-card h2 {
    color: #8b9aff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.app-card p {
    color: #c0c0c0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    color: #8b9aff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #a5b4ff;
    text-decoration: underline;
}

.app-header {
    text-align: center;
    margin: 0 0 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-header h1 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.app-header p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1rem;
}

.form-compact {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(20, 20, 35, 0.8);
    color: #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #e0e0e0;
}

.radio-label {
    color: #e0e0e0;
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.results-card h2,
.results-card h3 {
    color: #8b9aff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.results-card h2:first-child,
.results-card h3:first-child {
    margin-top: 0;
}

.results-card a {
    color: #8b9aff;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s;
}

.results-card a:hover {
    color: #a5b4ff;
    text-decoration: underline;
}

.results-card strong {
    color: #e0e0e0;
    font-weight: 600;
}

.results-card p {
    color: #d0d0d0;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    margin-top: 0.5rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    margin-top: 1rem;
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #8b9aff;
    font-weight: 500;
}

.results-card {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.about {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about h2 {
    color: #8b9aff;
    margin-bottom: 1rem;
}

.about p,
.about li {
    color: #d0d0d0;
}

.about ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.about li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container.compact {
        padding: 1rem;
    }
}

