/* Custom styles to match ASP.NET layout */

.bodydiv {
    max-width: 100%;
    margin: 0 auto;
}

.top {
    margin-bottom: 20px;
}

.top table {
    margin-bottom: 0;
}

.navbar-custom {
    margin-bottom: 20px;
}

.navbar-inverse {
    background-color: #222;
    border-color: #080808;
}

.navbar-inverse .navbar-nav > li > a {
    color: #999;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
}

.text-success {
    color: #5cb85c !important;
}

.text-primary {
    color: #337ab7 !important;
}

.dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.footerWrapper {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #e7e7e7;
    background-color: #f8f8f8;
}

.footer {
    text-align: center;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Custom form styling */
input[type="text"], input[type="email"], input[type="password"] {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.btn-success:hover {
    color: #fff;
    background-color: #449d44;
    border-color: #398439;
}

/* Product grid and cards */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-code {
    font-weight: bold;
    color: #337ab7;
    font-family: monospace;
}

/* Table styling */
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
    background-color: #f5f5f5;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top table,
    .top table td {
        display: block;
        width: 100% !important;
        text-align: center;
    }

    .top img {
        max-width: 100%;
        height: auto;
    }

    .navbar-nav {
        margin: 0;
    }

    .product-card {
        min-width: 100%;
    }
}

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

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}