* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.8) 0%, rgba(45, 24, 16, 0.8) 50%, rgba(26, 15, 10, 0.8) 100%), 
                url('https://i.pinimg.com/1200x/d8/57/23/d85723aecb04e4eaa65ae0eefca7f49f.jpg') center/cover fixed;
    background-attachment: fixed;
    color: #d4af37;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container:first-child {
    flex-shrink: 0;
    padding: 20px;
}

.container:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.main-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    height: 600px;
}

form {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: linear-gradient(135deg, #2d1810 0%, #3d2415 100%);
    border: 2px solid #8b4513;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    backdrop-filter: blur(5px);
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a0522d, transparent);
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 1.8em;
    letter-spacing: 1px;
    font-weight: bold;
    margin-top: 0px;
}

h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 1em;
    letter-spacing: 1px;
    font-weight: bold;
    margin-top: 0px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #8b4513;
    border-radius: 2px;
    font-size: 1em;
    background: rgba(20, 10, 5, 0.9);
    color: #d4af37;
}

input::placeholder {
    color: #8b6f47;
}

input:focus {
    outline: none;
    border-color: #a0522d;
    box-shadow: 0 0 10px rgba(160, 82, 45, 0.6), inset 0 0 10px rgba(160, 82, 45, 0.2);
    background: rgba(20, 10, 5, 0.95);
}

label {
    display: block;
    margin-top: 12px;
    font-size: 0.9em;
    color: #d4af37;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #d4af37;
    border: 1px solid #654321;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.6);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 100%);
    color: #ffeb3b;
    box-shadow: 0 6px 15px rgba(160, 82, 45, 0.8);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.download-section {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.download-btn {
    display: flex;
    flex: 1;
    text-decoration: none;
}

.download-btn button {
    width: 100%;
    background: linear-gradient(135deg, #5f3d2b 0%, #7f5d3f 100%);
    color: #d4af37;
    border: 1px solid #8b4513;
}

.download-btn button:hover {
    background: linear-gradient(135deg, #7f5d3f 0%, #9f7d5f 100%);
    color: #ffeb3b;
}

.greska {
    background: linear-gradient(135deg, #5f2a2a 0%, #8b3a2a 100%);
    color: #ff9999;
    padding: 10px;
    border: 1px solid #8b3a3a;
    border-radius: 2px;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(139, 58, 58, 0.5);
}

.uspjeh {
    background: linear-gradient(135deg, #2a5f2a 0%, #3a8b3a 100%);
    color: #99ff99;
    padding: 10px;
    border: 1px solid #3a8b3a;
    border-radius: 2px;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(58, 139, 58, 0.5);
}

.players-box {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(20, 10, 5, 0.5);
    border: 2px solid #8b4513;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.box-scroll {
    overflow-x: auto;
}

.players-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a0522d, transparent);
}

.players-box h3 {
    text-align: center;
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 1.3em;
    letter-spacing: 1px;
    font-weight: bold;
    flex-shrink: 0;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    flex: 1;
    overflow-y: auto;
}

.players-table th {
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 100%);
    color: #d4af37;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    border: 1px solid #654321;
}

.players-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #8b4513;
    color: #d4af37;
}

.players-table tr:hover {
    background: rgba(160, 82, 45, 0.2);
}

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

.no-players {
    text-align: center;
    color: #8b6f47;
    padding: 20px;
    font-style: italic;
}

.info-box {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(20, 10, 5, 0.5);
    border: 2px solid #8b4513;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.info-box h3 {
    text-align: center;
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 1.3em;
    letter-spacing: 1px;
    font-weight: bold;
    flex-shrink: 0;
}

.info-content {
    color: #d4af37;
    font-size: 0.95em;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
}

.info-content p {
    margin: 10px 0;
}

.info-content hr {
    border: none;
    border-top: 1px solid #8b4513;
    margin: 15px 0;
}

.info-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-content ul li {
    margin: 5px 0;
}

.status-online {
    color: #99ff99;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(153, 255, 153, 0.5);
}
