/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #0a0f1f;
    color: #ffffff;
    padding: 20px;
}
h1 {
    text-align: center;
    margin-bottom: 20px;
}
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.search-bar input {
    padding: 10px;
    width: 60%;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
}
.add-link-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.add-link-form input[type="text"] {
    padding: 10px;
    width: 25%;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
}
.add-link-form button {
    padding: 10px 20px;
    background-color: #00ccff;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.link-card {
    position: relative;
    background: #1b1f33;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.link-card a {
    text-decoration: none;
    color: #00ccff;
    font-size: 18px;
}

.link-card p {
    margin-top: 8px;
    color: #a1a6c8;
}
.remove-link {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #00ccff; /* Cyan color for the cross */
    cursor: pointer;
    font-weight: bold;
    opacity: 0.1;
}

.remove-link:hover {
    transition: 0.3 ease-in ;
    color: #ffffff; /* Lighter cyan on hover */
}
/* Responsive Styles */
@media (max-width: 768px) {
    .search-bar input {
        width: 80%;
    }
    .add-link-form input[type="text"] {
        width: 60%;
    }
    .add-link-form button {
        padding: 8px 15px;
    }
    .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px; /* Reduce padding for smaller devices */
    }
    .search-bar input {
        width: 90%;
        font-size: 14px; /* Smaller font size for mobile */
    }
    .add-link-form {
        flex-direction: column; /* Stack input fields and button vertically */
        align-items: center;
    }
    .add-link-form input[type="text"] {
        width: 80%; /* Increase input width for mobile */
        font-size: 14px; /* Adjust font size */
    }
    .add-link-form button {
        padding: 8px 12px;
        font-size: 14px; /* Adjust font size */
    }
    .link-card {
        padding: 15px;
    }
    .link-grid {
        grid-template-columns: 1fr; /* Single column layout on small screens */
    }
    h1 {
        font-size: 22px; /* Adjust heading font size for small screens */
    }
}
 