/* Reset all default margins/paddings */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root & Layout */
body {
    direction: rtl;
    background-color: #f8f9fa;
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
}

/* Header Branding */
.site-name {
    padding: 0;
    margin: 0;
    margin-inline-end: 20px;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--header-branding-color, #000000);
}

/* Header */
header.navbar {
    background-color: #000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 500;
    color: #DDB55B;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #DDB55B;
}
.breadcrumb-item a {
    color: #DDB55B;
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #FFFFFF;
}

/* Forms */
form {
    padding: 1rem;
    background-color: white;
    border: 1px solid #DDB55B;
    border-radius: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-family: 'Vazir', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #DDB55B;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    text-align: right;
}

/* Buttons */
button,
input[type="submit"] {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #000000;
    border: 1px solid #DDB55B;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background-color: transparent;
    border-collapse: collapse;
    text-align: right;
}

table th,
table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #DDB55B;
}

table th {
    font-weight: 600;
    background-color: #f1f1f1;
}

/* Messages */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    color: #DDB55B;
    font-size: 0.875rem;
}

/* RTL fixes for fieldsets and labels */
fieldset {
    border: none;
    margin-bottom: 2rem;
}
legend {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: right;
}



