* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2D9F4C 0%, #1B75BB 50%, #0D4F8B 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1B75BB;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.login-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #1B75BB;
}

.login-card h2 {
    color: #333;
    margin-bottom: 10px;
}

.login-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #1B75BB;
    color: white;
}

.btn-primary:hover {
    background: #2D9F4C;
}

.btn-secondary {
    background: #0D4F8B;
    color: white;
}

.btn-secondary:hover {
    background: #1B75BB;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #1B75BB;
}

.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.text-center {
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.header h1 {
    margin: 0;
    text-align: left;
}

.user-info {
    color: #666;
}

.user-info a {
    color: #1B75BB;
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #1B75BB 0%, #0D4F8B 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 14px;
    opacity: 0.9;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background: #f5f5f5;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    font-weight: 600;
    color: #1B75BB;
}

table tbody tr:hover {
    background: #f9f9f9;
}

.tracking-link {
    display: flex;
    gap: 10px;
}

.tracking-input {
    flex: 1;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.actions {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.advertiser-form,
.ad-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

select:focus {
    outline: none;
    border-color: #1B75BB;
}

.hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.link-display {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.link-display label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.copy-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tracking-input-large {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.instructions-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.instructions-box h3 {
    color: #856404;
    margin-bottom: 15px;
}

.instructions-box ul {
    margin: 15px 0;
    padding-left: 25px;
}

.instructions-box li {
    margin: 8px 0;
}

.creative-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.creative-content {
    margin-top: 20px;
}

.creative-content h3 {
    color: #1B75BB;
    margin: 20px 0 10px 0;
}

.code-box {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}

.code-box pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-box button {
    margin-top: 10px;
}

.filter-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.filter-section label {
    font-weight: 600;
    margin-right: 10px;
}

.filter-section select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #1B75BB 0%, #0D4F8B 100%);
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background: #f9f9f9;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.total-row {
    background: #f0f0f0 !important;
    font-weight: bold;
}

.total-row td {
    border-top: 2px solid #1B75BB !important;
}

.stats-summary {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.stats-summary h3 {
    margin: 0;
    color: #1976d2;
}

.highlight-warning {
    background: #fff3e0 !important;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #c8e6c9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff9c4;
    color: #f57f17;
}

.badge-danger {
    background: #ffcdd2;
    color: #c62828;
}

.fraud-alert-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.fraud-alert-box h3 {
    color: #856404;
    margin-bottom: 15px;
}

.fraud-alert-box ul {
    margin: 0;
    padding-left: 25px;
}

.fraud-alert-box li {
    margin: 10px 0;
}

.info-box {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.info-box p {
    margin: 0;
    font-size: 16px;
    color: #1976d2;
}

.nav-breadcrumb {
    margin: 20px 0;
}

.nav-breadcrumb a {
    color: #1B75BB;
    text-decoration: none;
    font-weight: 600;
}

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

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.report-card h3 {
    margin-top: 0;
    color: #1B75BB;
}

.report-card p {
    color: #666;
    margin: 15px 0;
}

.report-card .btn {
    margin-top: 10px;
}
