/**
 * PeteIT Affiliate System CSS
 */

.peteit-affilate-link-container {
    background-image: linear-gradient(180deg,#000 0%, #c19be9 150%);
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 20px 10px;
}

.peteit-affilate-link-container h3 {
    color: #fff;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.peteit-affilate-link-wrapper {
    margin: 15px 0;
}

.peteit-affilate-link {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.peteit-affilate-link-display {
    flex-grow: 1;
    padding: 12px;
    font-size: 14px;
    font-family: monospace;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.peteit-affilate-copy-button {
    padding: 12px 15px;
    background: #250920;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.peteit-affilate-copy-button:hover {
    background: #3a0e32;
}

.peteit-affilate-copy-status {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    transition: all 0.3s;
}

.peteit-affilate-copy-status.success {
    font-style: normal;
    background-color: #4CAF50;
    color: white;
}

.peteit-affilate-copy-status.error {
    display: block;
    background-color: #f44336;
    color: white;
}

/* Stats Styling */
.peteit-affilate-stats-container {
    background-image: linear-gradient(180deg,#000 0%, #c19be9 150%);
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 20px 10px;
}

.peteit-affilate-stats-container h3 {
    color: #fff;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.peteit-affilate-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.peteit-affilate-stat {
    text-align: center;
    background: #250920;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    flex: 1;
    margin: 0 5px;
}

.peteit-affilate-stat .stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.peteit-affilate-referrals {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.peteit-affilate-referrals th,
.peteit-affilate-referrals td {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
    border-bottom: 1px solid #ddd;
}

.peteit-affilate-referrals th {
    background-color: #250920;
    color: white;
}

.peteit-affilate-referrals tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Details heading styling */
.peteit-affilate-details-heading {
    color: #fff;
    margin-top: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .peteit-affilate-summary {
        flex-direction: column;
    }
    
    .peteit-affilate-stat {
        margin: 0 0 10px;
    }
    
    .peteit-affilate-referrals th, 
    .peteit-affilate-referrals td {
        padding: 8px;
    }
}
.peteit-affiliate-admin {
    max-width: 1200px;
    margin: 20px auto;
}
.peteit-affiliate-admin h1 {
    margin-bottom: 20px;
}
.peteit-affiliate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.peteit-affiliate-table th,
.peteit-affiliate-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.peteit-affiliate-table th {
    background-color: #f5f5f5;
}
.peteit-affiliate-repair-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}
.peteit-affiliate-repair-button:hover {
    background-color: #005177;
}
.peteit-affiliate-log {
    margin-top: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}
.peteit-affiliate-status {
    padding: 10px;
    margin-top: 10px;
    border-radius: 3px;
    display: none;
}
.peteit-affiliate-status.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}
.peteit-affiliate-status.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}