:root {
    --bg-dark: #0a0e14;
    --bg-card: #151c27;
    --primary-blue: #007bff;
    --bright-blue: #00d4ff;
    --text-main: #e1e1e1;
    --text-muted: #a0a0a0;
    --border-color: #2a3547;
    --danger: #ff4d4d;
    --success: #28a745;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

h1, h2, h3 {
    color: var(--bright-blue);
    margin: 0;
}

.search-box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.search-box input {
    width: 100%;
    background: #1c2533;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-id {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.card-url {
    color: var(--bright-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    word-break: break-all;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary { background-color: var(--primary-blue); }
.btn-danger { background-color: var(--danger); }
.btn-success { background-color: var(--success); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: #1c2533;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
}

/* Password Eye Icon */
.password-container {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    header { flex-direction: column; gap: 15px; text-align: center; }
}
