:root {
    --bg-color: #001f3f;
    --container-bg: rgb(92, 87, 97);
    --text-color: #e9e9e9;
    --border-color: #ddd;
    --button-bg: #9359ff;
    --button-hover-bg: #1b0446;
    --th-bg: #f2f2f2;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    color: var(--text-color);
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px;
    margin-bottom: 2rem;
  
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 25%;
    object-fit: cover;
}

.title {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    grid-column: 3;
    justify-self: end;
  }

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.purchased-table {
    opacity: 0.9;
    background-color: #414141;
    border-radius: 10px;
}

.purchased-table img {
    filter: grayscale(100%);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    margin-top: 1rem;
    background-color: #a09f9f;
    border-radius: 10px;
    color: var(--text-color);
}

th:first-of-type {
    border-top-left-radius: 10px;
  }
  th:last-of-type {
    border-top-right-radius: 10px;
  }
  tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 10px;
  }
  tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 10px;
  }
tr:nth-child(even) {
    background-color: #8f8e8e;
}

button {
    background-color: var(--button-bg);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--button-hover-bg);
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

.img-container {
    width: 20vw;
    height: 20vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="number"] {
    padding: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.delete-btn {
    background-color: #ff4136;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.delete-btn:hover {
    background-color: #d30f00;
}

@media screen and (max-width: 600px) {
    table {
        border: 10;
    }
    
    table caption {
        font-size: 1.3em;
    }
    
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }
    
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }
    
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    table td:last-child {
        border-bottom: 0;
    }
    
    .img-container {
        width: 30vw;
        height: 30vw;
        max-width: none;
        max-height: none;
    }

    td[data-label="Action"] {
        text-align: center;
    }

    td[data-label="Action"] form {
        display: inline-block;
    }

    td[data-label="Action"] button {
        width: 120px;
        margin: 0 auto;
    }
}