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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 72px 20px 20px;
}

/* Site Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 16px 20px;
}

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

.site-logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo-link:hover {
    opacity: 0.9;
}

.site-logo-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.site-logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    text-align: left;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 48px;
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    animation: fadeSlideIn 0.3s ease-out;
}

.notification.hidden {
    display: none;
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 20px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

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

input[type="text"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="text"]::placeholder {
    color: #95a5a6;
}

input[type="text"]:disabled {
    background: #f5f7fa;
    color: #95a5a6;
    cursor: not-allowed;
    border-color: #e1e8ed;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Distance Slider Styles */
.distance-slider-container {
    position: relative;
    padding: 20px 0 12px 0;
}

.slider-track-wrapper {
    position: relative;
    width: 100%;
}

.distance-ticks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    padding: 0 10px;
}

.distance-ticks .tick {
    position: relative;
    width: 2px;
    height: 14px;
    background: white;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.distance-ticks .tick[data-position="0"],
.distance-ticks .tick[data-position="5"] {
    height: 16px;
    width: 2.5px;
    transform: translateY(-5px);
}

.distance-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Webkit (Chrome/Safari) track */
.distance-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        #3498db 0%,
        #3498db var(--slider-percentage, 60%),
        #e1e8ed var(--slider-percentage, 60%),
        #e1e8ed 100%);
}

/* Slider thumb */
.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #3498db;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.distance-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.4);
}

.distance-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #3498db;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.distance-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.4);
}

/* Track styling for Firefox */
.distance-slider::-moz-range-track {
    background: #e1e8ed;
    height: 6px;
    border-radius: 3px;
}

/* Progress/fill for Firefox */
.distance-slider::-moz-range-progress {
    background: #3498db;
    height: 6px;
    border-radius: 3px;
}

/* Distance labels below slider */
.distance-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 10px;
}

.distance-labels span {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    text-align: center;
    flex: 0 0 auto;
    min-width: 35px;
}

.distance-labels span:first-child {
    text-align: left;
}

.distance-labels span:last-child {
    text-align: right;
}

/* Distance value display */
.distance-value-display {
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 8px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #2c3e50;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Secondary Button Styles */
.btn-secondary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.4);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Saved Searches Controls */
.saved-searches-controls {
    margin-top: 12px;
}

.local-storage-note {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
}

/* Application Tracker Announcement - Compact Banner */
.tracker-announcement {
    background: linear-gradient(135deg, #48c9b0 0%, #3ba896 100%);
    border-radius: 8px;
    padding: 8px 16px 12px 16px;
    margin-top: -24px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 3px 8px rgba(72, 201, 176, 0.12);
    animation: slideInFromTop 0.5s ease-out;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tracker-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1abc9c, #48c9b0, #1abc9c);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
        margin-bottom: 24px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

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

.tracker-announcement.hidden {
    display: none;
}

.tracker-announcement-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 12px;
    z-index: 1;
}

.tracker-announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tracker-announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding-right: 32px; /* Space for close button */
}

.tracker-announcement-icon {
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.tracker-announcement-text {
    color: white;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

.tracker-announcement-text strong {
    font-weight: 700;
}

.tracker-announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    color: #3ba896;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 18px;
    margin-right: 32px;
}

.tracker-announcement-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.tracker-announcement-btn i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.tracker-announcement-btn:hover i {
    transform: translateX(3px);
}

/* Saved Searches Styles */
.saved-searches {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
}

.saved-searches.hidden {
    display: none;
}

.saved-searches-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saved-searches-header > span:first-child {
    flex: 1;
}

.info-icon {
    color: #7f8c8d;
    cursor: help;
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    position: relative;
}

.info-icon:hover {
    color: #3498db;
}

.clear-all-btn {
    padding: 4px 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.clear-all-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.clear-all-btn:active {
    transform: translateY(0);
}

.searches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar styling for saved searches */
.searches-list::-webkit-scrollbar {
    width: 8px;
}

.searches-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.searches-list::-webkit-scrollbar-thumb {
    background: #c1c9d2;
    border-radius: 4px;
}

.searches-list::-webkit-scrollbar-thumb:hover {
    background: #a8b2bd;
}

.search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-item:hover {
    border-color: #3498db;
    background: #f0f8ff;
    transform: translateX(4px);
}

.search-item-name {
    flex: 1;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.search-item-delete {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.search-item-delete:hover {
    background: #fee;
    color: #c0392b;
}

/* URL Preview Styles */
.url-preview {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f5f7fa;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 12px;
    color: #2c3e50;
    word-break: break-all;
    font-family: 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
}

.url-preview-label {
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.url-preview-url {
    color: #3498db;
}

.url-preview.empty .url-preview-url {
    color: #95a5a6;
    font-style: italic;
}

/* How It Works Section */
.how-it-works {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e1e8ed;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* Footer Styles */
.footer {
    text-align: center;
    margin-top: 32px;
    color: #95a5a6;
    font-size: 13px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f7fa;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.social-links a:hover i {
    color: white;
}

.social-links i {
    font-size: 24px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

/* Privacy Page Specific Styles */
body.privacy-page {
    padding: 72px 20px 40px;
}

body.privacy-page .container {
    max-width: 800px;
}

body.privacy-page h1 {
    text-align: left;
}

.last-updated {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 32px;
}

h2 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
}

.back-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    margin-top: 32px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Updates Page Specific Styles */
body.updates-page {
    padding: 72px 20px 40px;
}

body.updates-page .container {
    max-width: 800px;
}

body.updates-page h1 {
    text-align: left;
}

.update-entry {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e1e8ed;
}

.update-entry:last-of-type {
    border-bottom: none;
}

.update-entry h2 {
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 16px;
}

.update-entry h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.update-entry h3:first-of-type {
    margin-top: 0;
}

.update-entry ul {
    margin: 0;
    padding-left: 24px;
}

.update-entry li {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 8px;
}

.update-entry li:last-child {
    margin-bottom: 0;
}

.back-link-container {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e1e8ed;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .subtitle {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 64px 20px 20px;
    }

    body.privacy-page {
        padding: 64px 20px 20px;
    }

    .container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 26px;
    }

    .site-header {
        padding: 12px 20px;
    }

    .header-content {
        gap: 12px;
    }

    .site-logo-link {
        gap: 8px;
    }

    .site-logo-icon {
        width: 24px;
        height: 24px;
    }

    .site-logo {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }

    /* Tracker announcement responsive */
    .tracker-announcement {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 8px;
    }

    .tracker-announcement-content {
        flex: 1 1 100%;
        padding-right: 24px;
    }

    .tracker-announcement-icon {
        font-size: 16px;
    }

    .tracker-announcement-text {
        font-size: 12px;
    }

    .tracker-announcement-btn {
        flex: 1 1 100%;
        justify-content: center;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .subtitle {
        display: none;
    }
}

/* ========================================
   TRACKER PAGE STYLES
   ======================================== */

/* Tracker Page Layout */
body.tracker-page {
    padding: 72px 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.tracker-page .container {
    max-width: 1200px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0px;
}

body.tracker-page .container h1 {
    text-align: left;
    margin-bottom: 8px;
}

body.tracker-page .container .subtitle {
    color: #7f8c8d;
    text-align: left;
    text-shadow: none;
    font-size: 14px;
    margin-bottom: 24px;
}

body.tracker-page .back-link {
    display: inline-block;
    margin-bottom: 16px;
}

body.tracker-page .back-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

body.tracker-page .back-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.action-buttons .btn,
.action-buttons .btn-secondary {
    width: auto;
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 14px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.filter-group.search-group {
    flex: 2;
    min-width: 200px;
}

.filter-group label {
    font-size: 12px;
    margin-bottom: 0;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 12px;
    font-size: 14px;
}

/* Applications Container */
.applications-container {
    min-height: 200px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e1e8ed;
    flex: 1;
    margin-bottom: 24px;
}

/* Applications Table */
.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e1e8ed;
}

.applications-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.applications-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    background: white;
}

/* Subtle alternating row colors */
.applications-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Enhanced hover effect - highlights entire row */
.applications-table tbody tr:hover {
    background: #e8f4fd;
    transform: translateX(2px);
    box-shadow: -3px 0 0 0 #3498db;
    cursor: pointer;
}

.applications-table tbody tr:last-child {
    border-bottom: none;
}

.applications-table td {
    padding: 16px;
    font-size: 14px;
    color: #2c3e50;
    vertical-align: middle;
}

.table-company {
    font-weight: 600;
    color: #2c3e50;
}

.table-title {
    color: #4a5568;
}

.table-date {
    color: #7f8c8d;
    font-size: 13px;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-btn {
    padding: 6px 12px;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-btn:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.table-btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #3498db;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.table-btn-icon:hover {
    background: #f0f8ff;
    color: #2980b9;
}

.table-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.status-saved {
    background: #ecf0f1;
    color: #7f8c8d;
}

.status-badge.status-applied {
    background: #d6eaf8;
    color: #2980b9;
}

.status-badge.status-interview {
    background: #fcf3cf;
    color: #d68910;
}

.status-badge.status-offer {
    background: #d5f4e6;
    color: #27ae60;
}

.status-badge.status-rejected {
    background: #fadbd8;
    color: #c0392b;
}

/* Priority Badge */
.priority-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.priority-badge.priority-high {
    background: #fadbd8;
    color: #c0392b;
}

.priority-badge.priority-high .priority-dot {
    background: #e74c3c;
}

.priority-badge.priority-medium {
    background: #fcf3cf;
    color: #d68910;
}

.priority-badge.priority-medium .priority-dot {
    background: #f39c12;
}

.priority-badge.priority-low {
    background: #d5f4e6;
    color: #27ae60;
}

.priority-badge.priority-low .priority-dot {
    background: #27ae60;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 64px;
    color: #e1e8ed;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal */
.modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

/* Modal Form */
.modal-form {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form .required {
    color: #e74c3c;
}

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

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

.modal-form input[type="text"],
.modal-form input[type="url"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="date"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Optional Fields Toggle */
.optional-fields {
    margin-bottom: 20px;
}

.toggle-optional-btn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.toggle-optional-btn:hover {
    color: #2980b9;
}

.toggle-optional-btn i {
    transition: transform 0.3s ease;
}

.toggle-optional-btn.expanded i {
    transform: rotate(180deg);
}

.optional-fields-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 2px solid #f0f0f0;
    background: white;
}

.modal-actions .btn,
.modal-actions .btn-secondary {
    flex: 1;
    margin-top: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    width: auto;
}

.modal-actions .btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    width: auto;
    margin-right: auto;
}

.modal-actions .btn-delete:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Footer for Tracker Page */
.tracker-footer {
    text-align: center;
    margin-top: 48px;
    padding: 24px 20px;
    color: #7f8c8d;
    font-size: 13px;
    width: 100%;
    max-width: 1200px;
}

.tracker-footer p {
    margin: 0;
}

.tracker-footer a {
    color: #3498db;
    text-decoration: none;
}

.tracker-footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles for Tracker */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
    }

    .filter-group,
    .filter-group.search-group {
        min-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn,
    .action-buttons .btn-secondary {
        width: 100%;
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Mobile table - stack as cards */
    .applications-table {
        border: 0;
    }

    .applications-table thead {
        display: none;
    }

    .applications-table tbody,
    .applications-table tr,
    .applications-table td {
        display: block;
    }

    .applications-table tr {
        margin-bottom: 16px;
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        padding: 16px;
        background: white;
    }

    .applications-table td {
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .applications-table td::before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 600;
        color: #7f8c8d;
        font-size: 12px;
        text-transform: uppercase;
        margin-right: 8px;
        min-width: 100px;
    }

    .table-actions {
        justify-content: flex-start;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 600px) {
    body.tracker-page {
        padding: 64px 20px 20px;
    }

    body.tracker-page .container {
        padding: 24px 20px;
    }

    .modal {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }

    .modal-header,
    .modal-form {
        padding: 20px;
    }
}
