/* Complete combined CSS for Resume Upload Application */

:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
}

.section {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

/* Login Section */
#buttonDiv {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Upload Section */
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.sign-out-btn {
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-out-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* Role Selector */
.role-selector {
    margin-bottom: 30px;
}

.role-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Enhanced Upload Button Styles */
.upload-btn {
    width: 100%;
    padding: 14px;
    background: #4285f4;  /* Google blue */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block !important;  /* Always display the button */
    opacity: 1;
    visibility: visible !important;
}

.upload-btn:hover:not(:disabled) {
    background: #3367d6;  /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.upload-btn:active:not(:disabled) {
    transform: translateY(0);
}

.upload-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Override the hidden class for the upload button */
#uploadBtn.hidden {
    display: block !important;
    opacity: 0.7;  /* Just slightly faded when no file selected */
}

/* Make sure button is visible in all themes/browsers */
button#uploadBtn {
    visibility: visible !important;
    display: block !important;
}

/* Improved Upload Zone */
.upload-zone {
    border: 2px dashed #4285f4;  /* Google blue border */
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f7ff;  /* Light blue background */
    margin-bottom: 20px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #3367d6;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #4285f4;
}

.upload-requirements {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Improved File Info Display */
.file-info {
    margin: 20px 0;
    padding: 15px;
    background: #e8f5e9;  /* Light green background */
    border-radius: 8px;
    border-left: 4px solid #34a853;  /* Google green */
}

/* Improved Role Selector */
.job-role-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.job-role-select:focus {
    border-color: #4285f4;
    outline: none;
}

/* Progress Container */
.progress-container {
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#progressText {
    font-size: 14px;
    color: #666;
}

/* Status Message */
.status-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}

.status-message.success {
    background: #e6f4ea;
    color: var(--secondary-color);
    border: 1px solid #b6dfbc;
}

.status-message.error {
    background: #fce8e6;
    color: var(--danger-color);
    border: 1px solid #f1c0bc;
}

.status-message.info {
    background: #e8f0fe;
    color: var(--primary-color);
    border: 1px solid #b8d2fc;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    
    .upload-zone {
        padding: 30px 15px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
}