/* Import Google Font - This is at the top where it belongs */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-size: 1.1em;
    background-color: #140e38;
    color: #f0f0f0;
}

#background-image {
    width: 100%;
    background-repeat: repeat-x;
    background-color: #140e38;
}

a {
    color: gold;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: yellow;
}
a .coinSearch {
    color: white;
}

/* Twitch Integration Styles */
.twitch-connected {
    background: rgba(100, 65, 165, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.twitch-not-connected {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.twitchloginbutton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #9146FF;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.twitchloginbutton:hover {
    background-color: #7D2DF7;
    transform: translateY(-2px);
    color: white;
}

.message-info {
    background: rgba(0, 123, 255, 0.2);
    color: #0d6efd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.message-error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Admin Twitch Drops Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.2);
    color: gold;
}

.admin-form {
    max-width: 600px;
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    background: #2a1a6c;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}


header {
    background-image: url("images/header.jpg");
    background-size: cover;
    width: 100%;
    padding: 60px 25px;
    text-shadow: 1px 1px 3px #000;
}
header h1 {
    margin: 0;
    color: white;
    font-size: 2.5em;
}

nav {
    background-color: #000;
    color: white;
    padding: 20px 0;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}
nav ul li {
    font-weight: bold;
}
nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: gold;
}

.twitchloginbutton {
    padding: 8px 16px;
    background-color: purple;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.twitchloginbutton:hover {
    background-color: gold;
    color: black;
}

section#content {
    margin: 20px;
    padding: 20px;
    background-color: #1e1545;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

footer {
    background-color: #0a0720;
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9em;
    margin-top: 30px;
    border-top: 1px solid #333;
}

/* Button utility */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: linear-gradient(to right, purple, gold);
    color: white;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}
.btn:hover {
    background: gold;
    color: black;
}

/* Dashboard specific styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Modified to avoid conflicts with my (4).php */
.dashboard-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1e1545 0%, #2a1a6c 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modified to avoid conflicts with my (4).php */
.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid gold;
    margin-right: 20px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex-grow: 1;
}

.user-info h1 {
    margin: 0;
    color: gold;
    font-size: 2em;
}

.user-stats {
    display: flex;
    margin-top: 10px;
}

.stat-item {
    margin-right: 20px;
    background: rgba(0,0,0,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.stat-item i {
    color: gold;
    margin-right: 5px;
}

.dashboard-nav {
    display: flex;
    background: #1a1040;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-nav a {
    padding: 15px 20px;
    color: #f0f0f0;
    text-decoration: none;
    flex-grow: 1;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.dashboard-nav a:hover, .dashboard-nav a.active {
    background: #2a1a6c;
    color: gold;
    border-bottom: 3px solid gold;
}

.dashboard-nav a i {
    margin-right: 5px;
}

/* Modified to avoid conflicts with my (4).php */
.dashboard-section {
    background: #1e1545;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    color: gold;
    border-bottom: 2px solid rgba(255,215,0,0.3);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Coin display styles - Modified to avoid conflicts */
.coinRow {
    padding: 15px;
    margin-bottom: 20px;
}

.rowHeader {
    color: gold;
    border-bottom: 2px solid rgba(255,215,0,0.3);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Modified to avoid conflicts with my (4).php */
.coinSearch {
    width: 150px;
    height: 200px;
    margin: 10px;
    padding: 10px;
    float: left;
    background-color: #2a1a6c;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.coinSearch:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.skinPreview {
    width: 100%;
    height: 150px;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.coin-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Modified to avoid conflicts with my (4).php */
.coin-image-general {
    flex: 1;
    min-width: 300px;
}

.coin-info {
    flex: 2;
    min-width: 300px;
}

/* Modified to avoid conflicts with my (4).php */
.coin-actions-general {
    background: #2a1a6c;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.coin-stats {
    background: #2a1a6c;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.coin-preview-frame {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modified to avoid conflicts with my (4).php */
.action-button-general {
    display: inline-block;
    padding: 8px 16px;
    background-color: gold;
    color: black;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.action-button-general:hover {
    background-color: yellow;
    transform: translateY(-2px);
}

.next-button {
    width: 128px;
    height: 128px;
    background-image: URL('images/next.png');
    position: relative;
    left: 96%;
    top: 128px;
    transition: transform 0.3s ease;
}

.next-button:hover {
    transform: scale(1.1);
}

.message-box {
    margin: auto;
    width: fit-content;
    background-color: #2a1a6c;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: 2px gold solid;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #28a745;
}

.error-message {
    background-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    header h1 {
        font-size: 1.8em;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .user-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-item {
        margin-bottom: 10px;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
    
    .dashboard-nav a {
        flex-basis: 50%;
    }
    
    .coin-detail {
        flex-direction: column;
    }
    
    .next-button {
        left: 80%;
    }
}