* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
}

.header {
    font-size: x-large;
    text-align: center;
    padding: 20px;
    background: #31445d;
    color: #ffd700;
}

#from,
#to {
    text-transform: uppercase;
}

#from::placeholder,
#to::placeholder {
    text-transform: none;
}

#statusSelect {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-top: 45px;
    overflow: hidden;
}

.status-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: block;

    width: fit-content;
    min-width: 80px;

    text-align: center;
    padding: 6px 15px;
    border-radius: 0 10px 0 10px;

    color: white;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.filters-section {
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.filters-container {
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.filters-section input[type="text"],
.filters-section input[type="number"] {
    flex: 0 1 300px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 14px;
}

.filters-section select {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
}

.form-section {
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    border-radius: 12px;
    background-color: #fff;
    box-sizing: border-box;
    background-color: transparent;
}

.form-inner {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;

    input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 12px;
        box-sizing: border-box;
    }
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.5fr;
    gap: 20px;
    align-items: center;
    box-sizing: border-box;


    select,
    input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 12px;
        box-sizing: border-box;
    }
}


.form-controls {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}


.dimension-inputs button:hover {
    background: #374151;
}

.delete-btn,
.edit-btn {
    width: 60px;
    margin: 10px 6px 0 0;
    padding: 7px;
    border: none;
    background: crimson;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

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

.edit-btn {
    background: rgb(125, 160, 65);
}

.edit-btn:hover {
    background-color: forestgreen;
}

#addBtn {
    padding: 12px 20px;
    border: none;
    background: #1f2937;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#addBtn:hover {
    background-color: #5a687a;
}

#cancelBtn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

#cancelBtn:hover {
    background-color: #a71d2a;
}

.footer {
    background-color: #31445d;
    color: white;
    padding: 40px 0 20px 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #9ca3af;
}

.company-link {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
}

.company-link:hover {
    color: white;
    border-bottom: 1px dotted white;
    opacity: 0.8;
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 900px) {

    .main-inputs,
    .dimension-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .filters-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .main-inputs,
    .dimension-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filters-section input[type="text"],
    .filters-section input[type="number"],
    .filters-section select {
        max-width: 100%;
        width: 100%;
        flex: 1 1 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}