/* General Body Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

/* Header Styling */
h1 {
    text-align: center;
    color: #343a40;
    margin-bottom: 20px;
}

/* Breadcrumb Styling */
.breadcrumb {
    padding: 8px 15px;
    margin-bottom: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
}

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

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #343a40;
}

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

tr:hover {
    background-color: #f9f9f9;
}

   /* Style for the full-width table */
    table.full-width-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    table.full-width-table th, 
    table.full-width-table td {
        padding: 12px;
        border: 1px solid #dee2e6;
        text-align: left;
        vertical-align: top;
    }

    table.full-width-table th {
        background-color: #f8f9fa;
        color: #343a40;
        font-weight: bold;
    }

    table.full-width-table select,
    table.full-width-table input[type="text"],
    table.full-width-table textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        box-sizing: border-box;
    }

    table.full-width-table textarea {
        resize: none;
    }

    table.full-width-table button {
        padding: 8px 12px;
        background-color: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    table.full-width-table button:hover {
        background-color: #c82333;
    }

/* Form Styling */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

 /* Form Styling Full Width */
    form.full-width-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 0 auto;
    }

label {
    display: block;
    margin-bottom: 8px;
    color: #343a40;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Button Styling */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Message Styling */
.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

.success {
    color: green;
    text-align: center;
    margin-bottom: 15px;
}

/* Back Link Styling */
p a {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

/* Action Buttons */
.icon-btn {
    text-decoration: none;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    color: #007bff;
    font-size: 18px;
    margin-right: 5px;
    position: relative;
}

.icon-btn:hover {
    color: #0056b3;
}

.icon-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 10;
    opacity: 0;
}

.icon-btn {
            text-decoration: none;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            background-color: transparent;
            color: #007bff;
            font-size: 18px;
        }
        
        .icon-btn:hover {
            color: #0056b3;
        }
        
        .icon-btn[title] {
            position: relative;
        }
        
        .icon-btn[title]::after {
            content: attr(title);
            position: absolute;
            left: 50%;
            bottom: 100%;
            transform: translateX(-50%);
            background-color: #000;
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            opacity: 0;
            white-space: nowrap;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .icon-btn:hover::after {
            opacity: 1;
        }

/* Create New Affiliate Button */
.create-new {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 20px;
}

.create-new:hover {
    background-color: #218838;
}

/* Status Labels */
.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

/* Status Message */
.status-message {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

 .status-box {
     padding: 5px 10px;
     border-radius: 4px;
      display: inline-block;
      font-weight: bold;
       text-align: center;
        }
        .status-pending {
            background-color: #ffc107; /* Yellow */
            color: #fff;
        }
        .status-paid {
            background-color: #28a745; /* Green */
            color: #fff;
        }

/* Styling for the header section */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Styling for the filter form */
.filter-form {
    display: flex;
    align-items: center;
}

/* Styling for the dropdown */
.small-dropdown {
    margin-left: 10px;
    padding: 5px;
    font-size: 14px;
}

/* Styling for the total amount display */
.total-amount {
    margin-left: 20px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

/* Styling for the filter-total table */
.filter-total-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.filter-total-table td {
    padding: 10px;
    vertical-align: middle;
}

/* Styling for the dropdown */
.small-dropdown {
    padding: 5px;
    font-size: 14px;
    margin-right: 10px;
}

/* Styling for the total amount display */
.total-amount {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    text-align: right;
}


