/* Custom Premium Styling for AI Job Application Tracker */

:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 28, 45, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients (Glowing Blobs) */
.blob-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

.blob-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 50px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
}

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

/* Glassmorphism Card Utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
}

/* Header style */
.app-header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo-icon {
    font-size: 24px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--card-border);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.avatar {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Dashboard Content */
.main-dashboard {
    padding-top: 35px;
    padding-bottom: 50px;
}

/* Stats section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.applied {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

.stat-icon.interviewing {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.stat-icon.offered {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.stat-icon.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Layout Columns Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Column Headers */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.column-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Job Cards styling */
.job-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.job-info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-card h4 {
    font-size: 16px;
    font-weight: 600;
}

.company-tag {
    font-size: 13px;
    color: var(--text-secondary);
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.job-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.job-meta a:hover {
    text-decoration: underline;
}

.job-actions-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Custom Dropdown select */
.status-select {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.status-select:focus {
    border-color: var(--primary-color);
}

.btn-delete {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-delete:hover {
    color: var(--danger-color);
}

/* Tabs styles */
.tab-header {
    display: flex;
    padding: 6px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

.ai-box h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-box h3 i {
    color: var(--primary-color);
}

.subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 20px;
}

/* Form Groups styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

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

.form-group.col {
    flex: 1;
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

input, textarea, select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

textarea {
    resize: vertical;
}

.divider {
    height: 1px;
    background: var(--card-border);
    margin: 24px 0;
}

/* Circular Score indicator */
.score-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Skills tagging */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.skills-block h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matching-title {
    color: var(--success-color);
}

.missing-title {
    color: var(--warning-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.tag.match {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag.missing {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tips-block h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-block h4 i {
    color: var(--warning-color);
}

.tips-block ul {
    list-style: none;
}

.tips-block li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.tips-block li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 16px;
    top: -2px;
}

/* Email output block */
.email-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.email-output-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: var(--primary-color);
}

.email-content {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-x: auto;
    color: #e5e7eb;
    max-height: 300px;
    overflow-y: auto;
}

/* Modal Overlay Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-primary);
}

/* Alerts Toast Notifications */
.notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

.toast {
    background: rgba(22, 28, 45, 0.9);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    transform: translateX(100px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Astra Multimodal Vision Scanner Styles */
.dropzone {
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    background: rgba(168, 85, 247, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dropzone:hover, .dropzone.dragover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.08);
}

.dropzone-icon {
    font-size: 32px;
    color: #a855f7;
}

.dropzone p {
    font-size: 13px;
    color: var(--text-secondary);
}

.dropzone span {
    color: #a855f7;
    font-weight: 600;
    text-decoration: underline;
}

.file-preview-info {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    margin-top: 5px;
    word-break: break-all;
}

.vision-result-panel {
    animation: fadeIn 0.3s ease;
}

.vision-header h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.extracted-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tuya IoT Hardware Banner Styles */
.tuya-hardware-banner {
    margin-bottom: 25px;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.08);
}

.tuya-banner-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tuya-led-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tuya-led-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 12px #00ff88, 0 0 24px #00ff88;
    transition: all 0.3s ease;
}

.tuya-pulse-glow {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #00ff88;
    animation: tuyaPulse 2s infinite ease-in-out;
}

@keyframes tuyaPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.tuya-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tuya-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tuya-test-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tuya-test-btn:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Urgent Deadline Focus Alert Banner Styles */
.urgent-deadline-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.urgent-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: pulseBorder 2s infinite ease-in-out;
}

@keyframes pulseBorder {
    0% { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
    50% { border-color: rgba(245, 158, 11, 0.9); box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
    100% { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
}

.urgent-card-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.urgent-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgent-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgent-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    animation: blinkGlow 1.2s infinite alternate;
}

@keyframes blinkGlow {
    from { opacity: 0.7; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.05); }
}

.urgent-text p {
    font-size: 13px;
    color: #f3f4f6;
    margin-top: 4px;
}

.urgent-action-btn {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.urgent-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}


