* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.welcome-card {
    background: linear-gradient(145deg, #23262d 0%, #1a1d24 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                0 1px 2px rgba(255, 255, 255, 0.05);
    padding: 40px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: cardAppear 0.5s ease-out forwards;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #7b68ee; /* vibrant purple */
}

.logo i {
    font-size: 2.5rem;
    margin-right: 15px;
    text-shadow: 0 0 10px rgba(123, 104, 238, 0.5);
}

.logo h1 {
    font-weight: 600;
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text {
    margin-bottom: 40px;
}

.welcome-text h2 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.api-setup {
    background: rgba(30, 30, 30, 0.5);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.api-setup h3 {
    margin-bottom: 15px;
    color: #7b68ee;
}

.api-setup p {
    margin-bottom: 20px;
    color: #b0b0b0;
}

.api-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

#api-key {
    padding: 15px;
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    color: #ffffff;
}

#api-key:focus {
    border-color: #7b68ee;
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
}

#save-api-key {
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
    position: relative;
    overflow: hidden;
}

#save-api-key:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

#save-api-key:active {
    transform: translateY(1px);
}

#save-api-key::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

#save-api-key:hover::after {
    animation: buttonGlow 1.5s infinite;
}

@keyframes buttonGlow {
    100% {
        transform: translateX(100%);
    }
}

.api-help {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 15px;
}

.api-help a {
    color: #00bfff;
    text-decoration: none;
    transition: all 0.3s;
}

.api-help a:hover {
    text-decoration: none;
    color: #7b68ee;
}

.privacy-note {
    display: flex;
    align-items: center;
    color: #8e8e8e;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(20, 20, 20, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.privacy-note i {
    margin-right: 10px;
    color: #00bfff;
}

@media (max-width: 600px) {
    .welcome-card {
        padding: 25px;
    }
    
    .api-form {
        flex-direction: column;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Card Styles */
.menu-card {
    max-width: 900px;
    margin: 0 auto;
}

.menu-options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.card-option {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(145deg, rgba(40, 44, 52, 0.7) 0%, rgba(28, 32, 38, 0.7) 100%);
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #7b68ee, #00bfff);
    transition: all 0.3s ease;
}

.card-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, rgba(45, 49, 58, 0.8) 0%, rgba(35, 39, 46, 0.8) 100%);
}

.card-icon {
    background: linear-gradient(135deg, #7b68ee, #00bfff);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(123, 104, 238, 0.3);
}

.card-icon i {
    font-size: 32px;
    color: white;
}

.card-option h3 {
    color: white;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.5rem;
}

.card-option p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-button {
    background: rgba(123, 104, 238, 0.2);
    color: #00bfff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-button i {
    transition: transform 0.3s;
}

.card-option:hover .card-button {
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    color: white;
}

.card-option:hover .card-button i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-options {
        flex-direction: column;
    }
    
    .card-option {
        width: 100%;
    }
}

.user-settings {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.settings-button {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.settings-button i {
    margin-right: 8px;
    color: #00bfff;
}

.settings-button:hover {
    background: rgba(30, 30, 30, 0.7);
    color: white;
}

/* Analysis Card Styles */
.analysis-card {
    max-width: 900px;
    margin: 0 auto;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    color: #b0b0b0;
    background: rgba(30, 30, 30, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.back-button:hover {
    background: rgba(123, 104, 238, 0.2);
    color: #00bfff;
    transform: translateX(-3px);
}

.analysis-card .logo {
    margin: 0 auto;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 10px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b0b0b0;
    font-weight: 500;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.step-text {
    color: #b0b0b0;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #7b68ee, #00bfff);
    color: white;
    box-shadow: 0 0 15px rgba(123, 104, 238, 0.5);
}

.progress-step.active .step-text {
    color: white;
    font-weight: 500;
}

.progress-step.completed .step-number {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    border-color: #00bfff;
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
    position: relative;
    top: -12px;
}

/* Form Styles */
.section-content {
    animation: fadeIn 0.5s ease-out;
}

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

.section-header h2 {
    margin-bottom: 10px;
    color: white;
    font-weight: 500;
}

.section-header p {
    color: #b0b0b0;
    line-height: 1.6;
}

.form-container {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

textarea {
    width: 100%;
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 20px;
}

textarea:focus {
    border-color: #7b68ee;
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
}

.primary-button {
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button i {
    font-size: 0.9rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-tracker {
        overflow-x: auto;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }
    
    .progress-step {
        min-width: 80px;
    }
    
    .step-text {
        font-size: 0.7rem;
    }
}

/* Resume upload specific styles */
.resume-analysis-status {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 25px;
    height: 25px;
    border: 3px solid transparent;
    border-top-color: #7b68ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    color: #b0b0b0;
}

.secondary-button {
    background: rgba(30, 30, 30, 0.8);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.secondary-button:hover {
    background: rgba(40, 40, 40, 0.8);
    color: white;
}

.form-footer {
    display: flex;
    justify-content: space-between;
}

.hidden {
    display: none;
}

.progress-step.completed .step-number {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    border-color: #00bfff;
}

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

/* Interview specific styles */
.interview-card {
    max-width: 1000px;
}

.interview-container {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    height: 500px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-header h3 {
    color: white;
    font-weight: 500;
    margin: 0;
}

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

.icon-button {
    background: rgba(123, 104, 238, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00bfff;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-button:hover {
    background: rgba(123, 104, 238, 0.4);
    transform: translateY(-2px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.ai .message-content {
    background: rgba(40, 44, 52, 0.7);
    color: #e0e0e0;
    border-top-left-radius: 5px;
}

.message.user .message-content {
    background: linear-gradient(135deg, #7b68ee, #00bfff);
    color: white;
    border-top-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #b0b0b0;
    margin-top: 5px;
    margin-left: 5px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(40, 44, 52, 0.7);
    width: fit-content;
    border-radius: 18px;
    margin: 0 20px 10px;
    animation: fadeIn 0.3s ease-out;
}

.dot {
    width: 8px;
    height: 8px;
    background: #b0b0b0;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: rgba(20, 20, 20, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input textarea {
    flex: 1;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 15px;
    color: white;
    font-size: 0.95rem;
    resize: none;
    margin: 0;
    margin-right: 10px;
}

.send-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b68ee, #00bfff);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

.send-button:active {
    transform: translateY(1px);
}

/* Animation for typing dots */
@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(123, 104, 238, 0.2);
    border-radius: 50%;
    border-top-color: #7b68ee;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.loading-indicator p {
    color: #b0b0b0;
    text-align: center;
}

/* Analysis specific styles */
.analysis-loading {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.analysis-loading p {
    margin: 15px 0;
    color: #b0b0b0;
}

.progress-bar-container {
    background: rgba(15, 15, 15, 0.5);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    width: 0%;
    transition: width 0.5s ease;
}

.analysis-results {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

.analysis-card {
    position: relative;
}

.section-card {
    background: rgba(40, 44, 52, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.section-card h3 {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card.match {
    border-left-color: #4caf50;
}

.section-card.gaps {
    border-left-color: #ff9800;
}

.section-card.strengths {
    border-left-color: #2196f3;
}

.section-card.improvements {
    border-left-color: #f44336;
}

.section-card.interview {
    border-left-color: #9c27b0;
}

.section-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.section-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.section-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.match-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.match-score-label {
    font-weight: 500;
    color: white;
}

.match-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(90deg, #7b68ee, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-match {
    margin: 20px 0;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    color: #b0b0b0;
}

.skill-bar {
    height: 6px;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #7b68ee, #00bfff);
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(123, 104, 238, 0.2);
    color: #00bfff;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.conclusion {
    font-style: italic;
    color: #b0b0b0;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-card.rejection-reasons {
    border-left-color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    margin-bottom: 30px;
}

.section-card.rejection-reasons h3 {
    color: #e91e63;
}

.section-card.rejection-reasons .fa-exclamation-triangle {
    color: #e91e63;
}

.home-button {
    position: absolute;
    right: 0;
    color: #b0b0b0;
    background: rgba(30, 30, 30, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.home-button:hover {
    background: rgba(123, 104, 238, 0.2);
    color: #00bfff;
    transform: translateX(3px);
} 