/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1c8737 50%, #0f172a 100%);
    color: white;
}

/* Light Mode */
body.light-mode {
    background: linear-gradient(135deg, #dbeafe 0%, #e8ffeb 50%, #fce7f3 100%);
    color: #1f2937;
}

/* Header */
.header {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.dark-mode .header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.light-mode .header {
    background: rgba(255, 255, 255, 0.4);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .btn-icon {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .btn-icon {
    background: rgba(0, 0, 0, 0.1);
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
}

.dark-mode .stat-card {
    background: rgba(255, 255, 255, 0.05);
}

.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid;
}

.stat-count {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .stat-bar {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .stat-bar {
    background: rgba(0, 0, 0, 0.1);
}

.stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Status Colors */
.status-applied { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.5); }
.status-interview { background: rgba(234, 179, 8, 0.2); color: #facc15; border-color: rgba(234, 179, 8, 0.5); }
.status-offer { background: rgba(34, 197, 94, 0.2); color: #4ade80; border-color: rgba(34, 197, 94, 0.5); }
.status-rejected { background: rgba(239, 68, 68, 0.2); color: #f87171; border-color: rgba(239, 68, 68, 0.5); }

.bar-applied { background: #3b82f6; }
.bar-interview { background: #eab308; }
.bar-offer { background: #22c55e; }
.bar-rejected { background: #ef4444; }

/* Chart */
.chart-container {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.dark-mode .chart-container {
    background: rgba(255, 255, 255, 0.05);
}

.light-mode .chart-container {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    margin-bottom: 1.5rem;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 250px;
    gap: 1rem;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-count {
    font-size: 1.5rem;
    font-weight: bold;
}

.chart-column {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: all 0.5s ease;
    min-height: 4px;
}

.chart-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
}

/* Form */
.form-container {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.dark-mode .form-container {
    background: rgba(255, 255, 255, 0.05);
}

.light-mode .form-container {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-family: inherit;
    transition: all 0.3s;
}
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-family: inherit;
    transition: all 0.3s;
}

.dark-mode .form-group input,
.dark-mode .form-group select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.dark-mode .form-group select option {
    background: #1e293b;
    color: white;
}
.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.light-mode .form-group input,
.light-mode .form-group select {
    background: white;
    border-color: rgba(0, 0, 0, 0.2);
    color: #1f2937;
}

.light-mode .form-group select option {
    background: white;
    color: #1f2937;
}
.light-mode .form-group textarea {
    background: white;
    border-color: rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.15);
}

.dark-mode .form-group select:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.light-mode .form-group select:focus {
    background: white;
    color: #1f2937;
}
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
}

.form-group textarea {
    resize: none;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
}

.form-actions .btn {
    flex: 1;
}

/* Filter */
.filter-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.dark-mode .filter-btn {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .filter-btn {
    background: rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: #06b6d4;
    color: white;
}

/* Applications List */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.dark-mode .app-card {
    background: rgba(255, 255, 255, 0.05);
}

.light-mode .app-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.app-card:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-card-content {
    display: flex;
    justify-content: space-between;
}

.app-info {
    flex: 1;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.app-company {
    font-size: 1.25rem;
    font-weight: bold;
}

.app-status {
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

.app-role {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.app-date {
    font-size: 0.875rem;
    opacity: 0.7;
}

.app-notes {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.app-actions {
    display: flex;
    gap: 0.5rem;
}

.app-action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.app-action-btn:hover {
    transform: scale(1.1);
}

.edit-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dark-mode .empty-state {
    background: rgba(255, 255, 255, 0.05);
}

.light-mode .empty-state {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.125rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}