﻿
.admin-nav {
    background: white !important;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd; 
}


.admin-nav-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}


.admin-nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

    .admin-nav-links li a {
        color: black;
        font-size: 1.2rem;
        text-decoration: none;
        transition: color 0.3s;
    }

        .admin-nav-links li a:hover {
            color: #555;
        }


.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-cart {
    color: black !important;
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: 20px;
}


.admin-logo {
    color: black;
    font-size: 1.8rem;
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s, filter 0.3s;
}




h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
}


.create-btn,
.edit-btn,
.delete-btn,
.details-btn {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}


.create-btn {
    background: #007bff;
}

    .create-btn:hover {
        background: #0056b3;
    }


.edit-btn {
    background: #28a745;
}

    .edit-btn:hover {
        background: #218838;
    }


.delete-btn {
    background: #dc3545;
}

    .delete-btn:hover {
        background: #c82333;
    }


.details-btn {
    background: #ffc107;
}

    .details-btn:hover {
        background: #e0a800;
    }


.table {
    width: 1200px; 
    border-collapse: collapse;
    margin-top: 10px;
}

.table th,
.table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }
.table th {
        background: #007bff; 
        color: #fff;
    }

    .table tr:nth-child(even) {
        background: #f2f2f2;
    }

    .table tr:hover {
        background: #ddd;
    }


.action-links a {
    text-decoration: none;
    color: #007bff;
    margin-right: 10px;
    transition: color 0.3s;
}

    .action-links a:hover {
        color: #0056b3;
    }


.table th p {
    margin: 0;
    padding: 0;
}

.table th {
    background: #28a745;
}

    
    .table th:nth-child(6),
    .table th:nth-child(7) {
        background: #28a745; 
    }


html, body {
    height: 100% !important;
    margin: 0 auto !important;
    padding: 2.5% 20px 0 20px !important; 
    display: flex !important;
    flex-direction: column !important;
}


.content-wrapper {
    flex: 1 !important; 
    display: flex !important;
    flex-direction: column !important;
    padding-top: 20px; 
}


.dashboard-footer {
    background: white;
    color: black;
    padding: 20px 0;
    text-align: center;
}





.container-custom {
    max-width: 960px;
    margin: 0 auto;
}

.page-title-custom {
    text-align: center;
    color: #333;
    font-size: 2rem;
}

.section-title-custom {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-divider-custom {
    margin-bottom: 30px;
    border-top: 1px solid #ddd;
}

.row-custom {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.col-custom {
    width: 100%;
    max-width: 600px;
}

.form-create-producto-custom {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group-custom {
    margin-bottom: 20px;
}

.label-producto-custom {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-producto-custom {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

    .input-producto-custom:focus {
        border-color: #007bff;
        background-color: #fff;
    }

.contenedor-imagen-create-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.img-preview-custom {
    max-width: 100px;
    max-height: 100px;
    border-radius: 10px;
    margin: 8px;
}

.label-imagen-custom {
    font-weight: 600;
    margin-top: 10px;
}

.input-imagen-custom {
    display: block;
    margin-top: 10px;
    padding: 5px;
    width: 100%;
}

.btn-submit-custom {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    border: none;
    transition: background 0.3s ease;
}

    .btn-submit-custom:hover {
        background-color: #0056b3;
    }

.back-link-custom {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    text-align: center;
    margin-top: 20px;
}

    .back-link-custom:hover {
        color: #0056b3;
    }






.container-custom-dd {
    width: 60%;
    margin: 0 auto;
/*    padding: 20px;
*/}


.page-title-delete-custom-dd {
    font-size: 2.5rem;
    font-weight: bold;
    color: red; 
    text-align: center;
    margin-bottom: 10px;
}


.section-title-custom-dd {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}


.section-divider-custom-dd {
    border-top: 2px solid #ccc;
    margin-bottom: 20px;
}


.row-details-custom-dd {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center;
}


.col-label-custom-dd {
    font-weight: bold;
    color: #333;
    width: 45%; 
    margin-bottom: 3px;
}


.col-value-custom-dd {
    color: #555;
    width: 45%; 
    margin-bottom: 3px;
}


.img-thumbnail {
    max-width: 75px;
    max-height: 75px;
    border-radius: 5px;
}


.btn-delete-custom-dd {
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 48%; 
    text-align: center;
    padding: 10px 0; 
    box-sizing: border-box; 
}

    .btn-delete-custom-dd:hover {
        background-color: darkred;
    }

.button-container-custom-dd {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.btn-edit-custom-dd {
    background-color: #f0ad4e; 
    color: white;
    text-decoration:none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 48%; 
    text-align: center;
    padding: 10px 0; 
    box-sizing: border-box; 
}

    .btn-edit-custom-dd:hover {
        background-color: #ec971f; 
        color:#fff;
    }

.back-link-custom-dd {
    
    text-decoration: none;
    color: #007bff;
    padding: 10px 0;
}




.back-link-custom-dd {
    display: inline-block;
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    text-align: center;
    padding: 10px 0; 
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    width: 48%; 
    box-sizing: border-box; 
    text-align: center;
}

    .back-link-custom-dd:hover {
        background-color: #007bff;
        color: white;
    }





.admin-menu-toggle {
    display: none;
}
@media (max-width:1250px){
    .table {
        width: 800px; 
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }
    main{
        margin-top:100px;
    }
}
@media (max-width: 1100px) {
    .admin-nav-container {
        padding: 40px 20px;
    }

    .admin-menu-toggle {
        display: flex;
        align-items: center;
        background: none;
        border: none;
        color: black;
        font-size: 1.8rem;
        cursor: pointer;
        font-weight: 300; 
    }

        .admin-menu-toggle i {
            margin-left: 4px;
            margin-top: 5px;
            color: black;
        }

    .admin-nav-links, .admin-nav-right {
        display: none;
    }


        .admin-nav-links.active {
            display: flex;
            flex-direction: column;
            width: 100%;
            background: transparent;
            position: relative;
            padding: 10px 0;
            z-index: 1001;
            color: white !important;
            align-items: center;
        }

            .admin-nav-links.active li {
                text-align: center;
                padding: 10px 10px;
                width: 100%;
            }

        .admin-nav-right.active {
            display: flex;
            flex-direction: column;
            width: 100%;
            background: transparent;
            position: relative;
            padding: 10px 0;
            z-index: 1000;
            align-items: center;
        }

            .admin-nav-right.active a {
                margin: 10px 0;
            }


    .admin-nav-container {
        flex-wrap: wrap;
    }

    .admin-nav {
        padding: 5px 20px !important;
    }

    .admin-logo {
        font-size: 1.5rem;
    }
}


 
@media (max-width: 768px) {
    main{
        margin-top:120px;
    }
    .table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }
    .btn-primary{
        margin-left:4px;

    }
        .table thead {
            display: none; 
        }

        .table tbody {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .table tr {
            display: flex;
            flex-direction: column;
            background: #fff;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .table td {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 16px;
        }

            .table td::before {
                content: attr(data-label);
                font-weight: bold;
                color: #333;
            }


            thead{
                display: none;
            }

    
    .action-buttons {
        display: flex;
        justify-content: space-around;
        margin-top: 10px;
    }

        .action-buttons a {
            flex: 1;
            text-align: center;
            padding: 8px;
            font-size: 14px;
            border-radius: 6px;
            text-decoration: none;
            transition: 0.3s;
            margin: 5px;
        }

    .btn-secondary {
        background-color: #007bff;
        color: white;
    }

    .btn-info {
        background-color: #ffc107;
        color: black;
    }

    .btn-danger {
        background-color: #dc3545;
        color: white;
    }

}
