.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.link-card {
    position: relative;
    width: 95px;
    height: 95px;
    /* background: rgba(255, 255, 255, 0.5); */
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    border-radius: 12px;
    padding: 16px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    transition: transform 0.2s;
    cursor: pointer;
    /* backdrop-filter: blur(5px); */
}

.link-card:hover {
    transform: translateY(-3px);
}

.delete-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.link-card:hover .delete-btn {
    display: flex;
}

.link-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
}

.form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 101;
    width: 320px;
    display: none;
}

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

.form-label {
    display: block;
    color: #2d3436;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-input {
    width: 95%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.form-input:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-input.invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.1);
}

.pagination-controls {
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
    display: none;
}

.pagination-controls button {
    padding: 8px 16px;
    margin: 0 4px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #6c5ce7;
    color: white;
}

.btn-secondary {
    background: #f0f1f5;
    color: #2d3436;
}