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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    display: flex;
    padding: 40px 20px;
    color: #e2e8f0;
}

.layout-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Left Side - Student Info */
.student-card {
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    width: 320px;
    height: fit-content;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 40px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.student-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.3);
    border: 3px solid rgba(102, 126, 234, 0.5);
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-name {
    font-size: 24px;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.student-roll {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.student-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 20px auto;
    border-radius: 2px;
}

/* Social Links */
.social-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #a0aec0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    color: #f7fafc;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
    width: 20px;
}

/* Right Side - Main Content */
.main-content {
    flex: 1;
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    color: #a0aec0;
    font-size: 16px;
    margin-bottom: 30px;
}

.input-section {
    background: rgba(45, 45, 65, 0.6);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

label {
    font-size: 14px;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 8px;
    display: block;
}

input[type="number"], input[type="text"] {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    width: 120px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    background: rgba(30, 30, 46, 0.8);
    color: #f7fafc;
}

input[type="text"] {
    width: 100%;
    text-align: left;
}

input[type="number"]:focus, input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #667eea;
}

.option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

button:hover::after {
    left: 100%;
}

.result-section {
    margin-top: 25px;
}

h2 {
    font-size: 20px;
    color: #f7fafc;
    margin-bottom: 15px;
    font-weight: 600;
}

.password-display-container {
    position: relative;
    margin: 15px 0;
}

.password-display {
    font-size: 18px;
    font-weight: 600;
    padding: 20px 80px 20px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    overflow-wrap: break-word;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7fafc;
    letter-spacing: 1px;
    box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
}

.copy-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    width: auto;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.password-info {
    background: rgba(45, 45, 65, 0.6);
    padding: 18px;
    border-radius: 10px;
    margin: 18px 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.info-label {
    font-weight: 600;
    color: #a0aec0;
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.strength-meter {
    height: 10px;
    background-color: rgba(45, 45, 65, 0.8);
    border-radius: 15px;
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s, background-color 0.5s;
    border-radius: 15px;
}

.strength-text {
    text-align: center;
    font-weight: 600;
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Predictability Analysis Styles */
.predictability-analysis {
    margin-top: 35px;
    padding: 25px;
    background: rgba(45, 45, 65, 0.6);
    border-radius: 15px;
    border-left: 5px solid #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.predictability-analysis h2 {
    margin-bottom: 8px;
    font-size: 22px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.analysis-card {
    background: rgba(30, 30, 46, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.analysis-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.analysis-card h3 {
    font-size: 16px;
    color: #f7fafc;
    margin-bottom: 12px;
    font-weight: 600;
}

.analysis-card .analysis-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    color: #a0aec0;
}

.analysis-card .analysis-description {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.4;
}

.predictability-result {
    margin-top: 20px;
    padding: 18px;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
    color: #a0aec0;
}

/* Mode Toggle Styles */
.mode-toggle {
    margin-bottom: 20px;
}

.mode-toggle label {
    font-size: 14px;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 8px;
    display: block;
}

.toggle-buttons {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(30, 30, 46, 0.6);
    color: #a0aec0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

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

.toggle-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.mode-section {
    display: none;
}

.mode-section.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .student-card {
        width: 100%;
        position: relative;
        top: 0;
        padding: 30px 25px;
    }
    
    .student-avatar {
        width: 100px;
        height: 100px;
    }
    
    .student-name {
        font-size: 22px;
    }
    
    .student-roll {
        font-size: 16px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .layout-container {
        gap: 20px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        gap: 15px;
    }
    
    .analysis-card {
        padding: 18px;
    }
    
    .analysis-card .analysis-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }
    
    .student-card {
        padding: 25px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .input-section {
        padding: 18px;
    }
    
    .password-display {
        font-size: 16px;
        padding: 15px 70px 15px 15px;
    }
    
    .toggle-buttons {
        flex-direction: column;
    }
    
    .predictability-analysis {
        padding: 20px;
    }
    
    .analysis-card {
        padding: 15px;
    }
    
    .analysis-card .analysis-value {
        font-size: 20px;
    }
}
