@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&display=swap');

.dashboard-first-div * {
    font-family: 'FiraGO', sans-serif;
}

.dashboard-first-div {
    display: flex;
    background-color: #f8f9fa;
}

.dashboard {
    margin: 60px auto;
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 90%;
}

/* ======= Sidebar ======= */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 15px 0;
    min-width: 280px;
}

.dashboard-sidebar-items {
    color: #666;
    text-decoration: none;
    padding: 16px 24px;
    margin: 0 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.dashboard-sidebar-items:hover {
    color: #ef0000;
    transform: translateX(4px);
}

.dashboard-sidebar .active {
    color: #ef0000 !important;
    background: #fff5f5;
    position: relative;
    border-left: 3px solid #ef0000 !important;
    margin-left: 12px;
}

.logout-btn * {
    font-family: "Font Awesome 5 Free";
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 9999px; /* full pill shape */
    background: linear-gradient(135deg, #ff3b30, #ff453a);
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
    transition: all 0.25s ease;
}

.logout-btn i {
    margin: 0;
    font-size: 16px;
    color: white;
}

.logout-btn span {
    font-family: 'FiraGO', sans-serif;
}

.logout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.5);
    background: linear-gradient(135deg, #ff453a, #ff3b30);
}

.dashboard-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    overflow: hidden;
}

.dashboard-container-title {
    padding: 20px 30px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.2rem;
    background: #fafafa;
}

.dashboard-container-title p {
    margin: 0;
    font-weight: 500;
    color: #444;
}

.dashboard-container-body {
    padding: 20px;
}

/* Dashboard */
.dashboard-page {
    color: var(--dark-color);
    display: flex;
    gap: 20px;
}

.dashboard-page > div {
    border: 1px solid #eaeaea;
    border-radius: 5px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    margin: auto auto;
    height: 80%;
    max-height: 170px;
    line-height: 35px;
}

.dashboard-page > div h3:first-child {
    margin-bottom: 8px;
}

.dashboard-page img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center; 
}

.dashboard-page a {
    text-decoration: none;
    color: var(--red-color);
}

/* End of Dashboard */


/* My Orders */
.dashboard_orders {
    overflow-x: auto; /* Enables horizontal scrolling */
    margin-top: 20px;
}

.dashboard_orders thead * {
    font-family: "BPG Glaho", Arial, sans-serif;
}

.dashboard_orders tbody * {
    font-family: "Mukta", sans-serif;
}

.dashboard_orders table {
    width: 100%;
    min-width: 600px; /* Ensures the table has enough room to display its content */
    border-collapse: collapse;
}

.dashboard_orders th,
.dashboard_orders td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.dashboard_orders th {
    background-color: #f8f9fa;
    color: #333;
}

.dashboard_orders tr:nth-child(even) {
    background-color: #f2f2f2;
}

.dashboard_orders tr:hover {
    background-color: #ddd;
}

.dashboard_orders a {
    color: #007bff;
    text-decoration: none;
}

.dashboard_orders a:hover {
    text-decoration: underline;
}

/* End Of My Orders */


/* Edit Profile */
.ep-form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.ep-form-group {
    flex: 1 1 48%; /* Adjusts the width to almost half, with a little space in between */
    margin-bottom: 10px; /* Adds space below each form group */
}

.ep-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px; /* Space between label and input */
    color: #333333;
}

.ep-custom-file input[type="file"] {
    width: 100%;
    padding: 6px 6px 7px;
    border-radius: 5px;
    border: 1px solid #ccc; /* Standard gray border */
    background-color: #fafafa; /* Light background for the file input */
}

.ep-edit-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd; /* Lighter border for text inputs */
    border-radius: 4px; /* Rounded corners for text inputs */
}

.ep-edit-input:focus {
    outline: none;
    border: 1px solid red;
}

.ep-form-group button {
    display: block;
    padding: 10px 20px;
    background-color: #fd1717; /* Bootstrap primary blue */
    color: white;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ep-form-group button:hover {
    background-color: red; /* Darker blue on hover */
}
/* End Of Edit Profile */

/* Start Of Change Password */

.cp-form > div {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #333333;
}

.cp-form input {
    height: 38px;
    max-width: 400px;
    padding-left: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cp-form input:focus {
    outline: none;
    border: 1px solid red;
}

.cp-form > input {
    background-color: #FA3434;
    border: none;
    color: white;
    padding: 10px 16px;
}

.cp-form > input:hover {
    background-color: red;
}
/* End Of Change Password */

@media (max-width: 768px) {
    .ep-form-group {
        flex: 1 1 100%; /* Stacks the input fields under each other on smaller screens */
    }

    .dashboard {
        flex-direction: column;
        width: 80%;
    }

    .dashboard-page {
        flex-direction: column;
    }

    .dashboard-sidebar-items {
        width: 100%;
    }

    .dashboard-container {
        width: 100%;
    }

    /*.dashboard-sidebar {*/
    /*    width: fit-content;*/
    /*}*/
    /*.dashboard-sidebar-items {*/
    /*    width: fit-content;*/
    /*}*/
    /*.dashboard-sidebar-items span {*/
    /*    writing-mode: vertical-lr;*/
    /*    transform: rotate(180deg);*/
    /*}*/
    /*.logout-btn {*/
    /*    width: 46px;*/
    /*    justify-content: center;*/
    /*    padding: 10px 0;*/
    /*}*/
    /*.logout-btn i {*/
    /*    margin: 0;*/
    /*}*/
    /*.logout-btn span {*/
    /*    display: none;*/
    /*}*/
    .dashboard_orders th,
    .dashboard_orders td {
        padding: 5px; /* Reduced padding for smaller screens */
        font-size: 12px; /* Smaller font size for better readability on small devices */
    }
}