/* DnD Fleet Management Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: #2c1810;
    color: #e8dcc0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #1a0f08;
    border-bottom: 3px solid #8b4513;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    color: #d4af37;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #e8dcc0;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #8b4513;
    color: #fff;
}

/* Cards */
.card {
    background-color: #3a2418;
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card h2, .card h3 {
    color: #d4af37;
    margin-bottom: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #3a2418;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #8b4513;
}

th {
    background-color: #8b4513;
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: rgba(139, 69, 19, 0.1);
}

tr:hover {
    background-color: rgba(139, 69, 19, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #d4af37;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background-color: #2c1810;
    color: #e8dcc0;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #8b4513;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a0522d;
}

.btn-secondary {
    background-color: #5a5a5a;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #696969;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #dc3545;
}

/* Ship stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background-color: rgba(139, 69, 19, 0.2);
    border-radius: 5px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #d4af37;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
}

/* Upgrade list */
.upgrade-item {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 10px;
    margin: 5px 0;
    border-left: 3px solid #8b4513;
    border-radius: 3px;
}

.upgrade-name {
    font-weight: bold;
    color: #d4af37;
}

.upgrade-bonuses {
    font-size: 12px;
    color: #a0a0a0;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}