* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f7f9fa;
    color: #1a1a1a;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

header {
    margin-bottom: 2rem;
}

h1 {
    font-weight: 600;
    letter-spacing: -0.5px;
}
.create-form {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.search-bar {
    background: #ebeaea;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    box-shadow: 5px #000;
}

.search-bar input {
    padding-left: 5px; 
    border-radius: 10px;
    width: 100%;          
    margin-left: auto;    
}


.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

input[type="text"] {
    padding: 0.75rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus {
    border-color: #000;
}

button {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.85;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eee;
}

.card-content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.delete-btn {
    background: transparent;
    color: #d9381e;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.delete-btn:hover {
    background: #fff0f0;
}

.input-group select {
    width: 100%;
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group select:focus {
    border-color: #7b78b8;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-group select option {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 2px;
    cursor: pointer;
}

.input-group select option:last-child {
    margin-bottom: 0;
}

.input-group select option:hover {
    background-color: #f3f4f6;
}

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

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    color: #333;
}

.modal-body p {
    margin: 10px 0;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #777;
}
.close-btn:hover {
    color: #000;
}
.modalBtns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
