* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background: #000000 url('wallpaper.gif') center center fixed;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Dark overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    color: #ffffff;
    position: relative;
    padding: 2rem 0;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #ff4444;
    border-radius: 1px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 400;
    color: #b0b0b0;
    font-family: 'Inter', sans-serif;
}

.add-form {
    background: #111111;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
    border: 1px solid #222222;
    position: relative;
}

.add-form h2 {
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
}

input::placeholder, textarea::placeholder {
    color: #666666;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff4444;
    box-shadow: 
        0 0 0 2px rgba(255,68,68,0.3),
        0 4px 12px rgba(255,68,68,0.2);
    background: rgba(34, 34, 34, 0.9);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'JetBrains Mono', monospace;
}

.btn {
    background: #ff4444;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn:hover {
    background: #ff5555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,68,68,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-secondary {
    background: #333333;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #444444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-danger {
    background: #cc3333;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dd4444;
    box-shadow: 0 4px 12px rgba(204,51,51,0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 
        0 4px 12px rgba(255, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd4444 100%);
    box-shadow: 
        0 6px 20px rgba(255, 68, 68, 0.4),
        0 0 15px rgba(255, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
    transform: translateY(-1px);
}



.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 0.9rem;
    opacity: 0.6;
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    color: #ffffff;
}



.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.website-card {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.website-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
}

.pinned-card {
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    background: rgba(255, 215, 0, 0.05) !important;
    position: relative;
}

.pinned-card:hover {
    border-color: rgba(255, 215, 0, 0.8) !important;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.pin-indicator {
    position: absolute;
    top: -8px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #000000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.website-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.website-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.8;
}

.website-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.website-title:hover {
    color: #ff4444;
}

.website-url {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    word-break: break-all;
    font-family: 'JetBrains Mono', monospace;
}

.website-notes {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ff4444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.website-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-item {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.website-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 1rem;
}

.priority-tag {
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.website-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stats {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.stat-item {
    position: relative;
}

.stat-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ff4444;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: #cccccc;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #cccccc;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.7;
    color: #888888;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-modal {
    max-width: 400px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    text-align: center;
    color: #cccccc;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-body strong {
    color: #ff4444;
    font-weight: 600;
}

.modal-actions {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.close {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: #cccccc;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
}

.close:hover {
    opacity: 1;
    background: #222222;
}

.modal form {
    padding: 2rem;
}

.modal form label {
    color: #cccccc;
}

.modal form input,
.modal form select,
.modal form textarea {
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .websites-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .website-actions {
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .website-metrics {
        flex-direction: column;
        gap: 0.3rem;
    }

    .metric-item {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Line numbers styling */
.line-number {
    color: #ff4444;
    font-weight: bold;
    margin-right: 8px;
    font-family: 'JetBrains Mono', monospace;
} 