
* {box-sizing: border-box;}

/* reset styles test */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, button, form {
	margin: 0; padding: 0;  border: 0; outline: 0; font-size: 100%;
	vertical-align: baseline; background: transparent;
}
body { line-height: 1; }
/* ol, ul { list-style: none; } */

ol, ul {margin-left: 20px; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; }
:focus { outline: 0; }
ins { text-decoration: none; }
del { text-decoration: line-through; }
table { border-collapse: collapse; border-spacing: 0; }
td {vertical-align: top; padding: 5px;}
textarea {font-size: 18px;width: 80%;height: 100px;}

body {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: inherit;
    font-weight: 400;
    color: #ffffff;
    /* background-color: #ffffff; */
    background-color: #e1ebf0;
    background-image: url(../images/compass-background.jpg); 
    background-size: cover;
}

#bodyTop {
/*    background-image: url(../images/ocean300x1600.jpg); */
/*    background-color: #1e656e; */
    width: 100%;
    height: 80px;
}


#bodyWrap {
    max-width: 800px;
    margin: 0 auto;
   /* background-color: #e1ebf0; */
    background-color: #1a365d; 
    position: relative;
    /* top: -110px; */
    /*    box-shadow: 0 0 5px rgba(0,0,0,0.35); */
}

#banner {
    background-color: red; 
    color: white;
    text-align: center;    
    width: 100%;
   font-weight: bold;
}

button {
    cursor: pointer;
    opacity: 0.9;
    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
    background-color: #0288d1;
    color: #fff;
    padding: 12px;
    width: 50%;
    border-radius: 20px;
    margin: 5px;
}
button:hover {
    opacity: 1;
}

button.textlink {
    background:none!important;
    color: #0277bd;
    border:none; 
    padding:0!important;
    font: inherit;
    /*border is optional*/
    border-bottom:none; 
    cursor: pointer;
    opacity: 1;
    text-shadow: 0 0 0 0;
    background-color: none;
    width: 100%;
    border-radius: none;
    margin: none;

}

img {
    max-width: 100%;
    height: auto;
}

input[type=text], input[type=password] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
}
input[type=number] {
    width: 100px;
    padding: 10px;
}

input.smallinput {
    width: 25%;
    padding: 5px;
    margin-bottom: 20px;
}

select {
	width: 80%;
	padding: 10px;
	margin-bottom: 20px;
}
select.smallinput {
    width: 25%;
    padding: 5px;
    margin-bottom: 20px;
}


p {
    margin: 1em 0;
    text-align: left;
}


a {
    text-decoration: none;
    cursor: pointer;
    color: #0277bd;
}



h2 {
    font-size: 24px;
/*    margin: 1em 0; */
}

h4 {
    font-weight: bold;
}

ol li {
    padding: 10px;
    margin-left: 35px;
}




form {
    text-align: center;    
}


.smallform button {
width: 200px;
}
.smallform select {
width: 200px;
}
.smallform input[type=text] {
width: 200px;
}
.smallform input[type=password] {
width: 200px;
}





form.searchform {
    float: left;
    text-align: left;
    width: 100%;
}

form.searchform button{
    width: 100px;
}
form.searchform input{
    width: 100px;
}

.pageform {
    width: 80%;
    background-color: #f1f3ce;
    border: 4px solid #f62a00;
    padding: 10px;
    margin: auto;
    text-align: center;
    color: #000;
}
.pageform button {
width: 200px;
}
.pageform select {
width: 200px;
}
.pageform input[type=text] {
width: 200px;
}
.pageform #art img{
    height: 50px;
}



.quickstart {
    float: right; 
    margin: 10px;
    width: 40%;
}



.roster {
    width: 90%;
    background-color: #f1f3ce;
    border: 1px solid black;
    padding: 10px;
    margin: auto;
    text-align: left;
    color: #000;
}

.roster img {height: 25px; width: 25px;}
.roster textarea {height: 200px; width: 100%;}

/* Operations Page Card Design */
.operations-nav-links {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    font-size: 14px;
}

.operations-nav-links a {
    color: #2c5aa0;
    text-decoration: none;
    padding: 0 10px;
    font-weight: 500;
}

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

.operations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.operations-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.operation-card {
    background: linear-gradient(135deg, #e6d9c0 0%, #d4c4a8 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.operation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.operation-card.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.operation-card.underway {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.operation-card.expired {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.operation-card-header {
    padding: 15px 20px;
    background: rgba(30, 58, 95, 0.1);
    border-bottom: 1px solid rgba(139, 115, 85, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.operation-card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    flex: 1;
}

.operation-card-header h3 a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.operation-card-header h3 a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.operation-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.operation-status.active {
    background: #28a745;
    color: white;
}

.operation-status.underway {
    background: #ff9800;
    color: white;
}

.operation-status.expired {
    background: #dc3545;
    color: white;
}

.operation-status.closed {
    background: #6c757d;
    color: white;
}

.operation-status .countdown {
    font-size: 13px;
    opacity: 0.9;
}

.operation-card-body {
    padding: 20px;
}

.operation-detail {
    margin-bottom: 14px;
    font-size: 16px;
    color: #4a4a4a;
}

.operation-detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #1e3a5f;
    display: inline-block;
    min-width: 90px;
}

.open-position {
    color: #dc3545;
    font-style: italic;
}

.roster-count {
    color: #2c5aa0;
    font-weight: 500;
}

.br-count {
    color: #ff9800;
    font-weight: 600;
}

.operation-card-footer {
    padding: 15px 20px;
    background: rgba(30, 58, 95, 0.05);
    border-top: 1px solid rgba(139, 115, 85, 0.2);
}

.view-operation-btn {
    display: inline-block;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}

.view-operation-btn:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

.no-operations-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.create-operation-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.create-operation-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.create-operation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Operation Detail Page Cards */
.op-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.op-header-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.op-header-title h1 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
}

.op-meta-info {
    display: flex;
    gap: 30px;
    font-size: 16px;
    margin-bottom: 20px;
}

.op-time, .op-br-limit {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.op-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.op-header-actions form {
    display: inline-block;
    margin: 0;
}

.op-action-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.op-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.discord-btn {
    background: #5865F2;
    color: white;
    border: 1px solid #4752C4;
}

.discord-btn:hover {
    background: #4752C4;
}


.op-join-btn {
    background: linear-gradient(135deg, #00c853 0%, #00a040 100%);
    color: white;
    border: 1px solid #00a040;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 200, 83, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 180px;
}

.op-join-btn:hover {
    background: linear-gradient(135deg, #00e563 0%, #00c853 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.3);
}

.op-exit-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 1px solid #c82333;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 180px;
}

.op-exit-btn:hover {
    background: linear-gradient(135deg, #e25563 0%, #dc3545 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.op-commander-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.op-commander-card h2 {
    margin: 0 0 20px 0;
    color: #1e3a5f;
    font-size: 22px;
}

.commander-info {
    margin-bottom: 20px;
}

.commander-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.commander-action-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.salute-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.cancel-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.relinquish-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.commander-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.take-command-btn, .admin-command-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.take-command-btn:hover {
    transform: translateY(-2px);
}

/* Admin Section at bottom of page */
.admin-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dotted #ccc;
}

.admin-section-content {
    text-align: center;
    font-size: 11px;
    color: #999;
}

.admin-label {
    font-style: italic;
    color: #999;
}

.admin-link-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-style: italic;
    display: inline;
}

.admin-link-btn:hover {
    color: #666;
}

.no-commander {
    text-align: center;
    padding: 20px;
}

.no-commander p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.op-roster-card {
    background: linear-gradient(135deg, #e6d9c0 0%, #d4c4a8 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.op-roster-card h2 {
    color: #1e3a5f;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b7355;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.roster-header {
    border-bottom: 2px solid #8b7355;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.roster-header h2 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.roster-br-info {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.br-total {
    font-weight: 600;
    color: #ff9800;
}

.br-calculation {
    color: #666;
}

.roster-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.roster-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.member-name {
    flex: 1;
    font-weight: 500;
    color: #1e3a5f;
    font-size: 16px;
}

.winner-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ffd700;
    color: #333;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.member-ship {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ship-link, .select-ship-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.ship-link:hover, .select-ship-link:hover {
    text-decoration: underline;
}

.ship-br {
    padding: 4px 10px;
    background: #ff9800;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.no-ship {
    color: #999;
    font-style: italic;
}

.member-actions {
    display: flex;
    gap: 10px;
}

.roster-action-btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.roster-action-btn:hover img {
    transform: scale(1.2);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.ship-name {
    color: #666;
    font-weight: 500;
}

.no-reserves {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.op-log-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.op-log-card h2 {
    margin: 0 0 20px 0;
    color: #1e3a5f;
    font-size: 22px;
}

.log-entry-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.log-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.log-submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.log-submit-btn:hover {
    transform: translateY(-2px);
}

.log-entries {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.log-entry {
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.log-entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.log-author {
    font-weight: 600;
    color: #1e3a5f;
}

.log-time {
    color: #999;
    font-size: 14px;
}

.log-entry-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.no-log-entries {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
}

/* Operations Member Cards */
.member-cards-container.ops-roster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.ops-member-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ops-ship-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.ops-ship-info .ship-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.ops-ship-info .ship-link:hover {
    text-decoration: underline;
}

.ops-ship-info .select-ship-link {
    color: #dc3545;
    text-decoration: none;
    font-style: italic;
}

.ops-ship-info .select-ship-link:hover {
    text-decoration: underline;
}

.ops-ship-info .ship-br {
    padding: 3px 8px;
    background: #ff9800;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ops-ship-info .no-ship {
    color: #999;
    font-style: italic;
}

.ops-member-actions {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.ops-member-actions .roster-action-btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.ops-member-actions .roster-action-btn:hover img {
    transform: scale(1.2);
}

.manual-entry .manual-indicator {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}

.manual-label {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
    margin-left: 5px;
}

.ops-action-section {
    margin-top: 20px;
    text-align: center;
}

.declare-winner-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.declare-winner-btn:hover {
    transform: translateY(-2px);
}

/* Welcome page card styles */
.welcome-hero-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.welcome-hero-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.welcome-hero-card .hero-content {
    margin-top: 20px;
}

.welcome-hero-card .cta-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-hero-card .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.welcome-mission-card {
    background: linear-gradient(135deg, #e6d9c0 0%, #d4c4a8 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-mission-card h2 {
    margin: 0 0 15px 0;
    color: #2c1810;
    font-size: 26px;
    text-align: center;
    border-bottom: 3px solid #8b7355;
    padding-bottom: 10px;
}

.welcome-mission-card .mission-statement {
    font-size: 18px;
    line-height: 1.6;
    color: #2c1810;
    text-align: center;
    font-weight: 500;
    margin: 0;
}

.welcome-video-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.welcome-video-card h2 {
    margin: 0 0 20px 0;
    color: #1e3a5f;
    font-size: 22px;
}

.welcome-video-card .video-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.welcome-video-card iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* Responsive adjustments for operations cards */
@media (max-width: 768px) {
    .operation-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .operation-status {
        align-self: flex-start;
    }
}

.divider {
    height: 1px;
    background-color: #0288d1;
    margin: 20px 20px 40px 20px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.35);
}


.floatLeft {float: left;}
.floatRight {float: right;}
.clearFloat {clear: both;}

.center {
    text-align: center;
    margin: 0 auto;
}

.smalltext {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 10px;
}

.bold-text {font-weight: bold;}



.petition-table td {
    border: 1px solid white;
}


.pageart {
    height: 100px;
    width: 100%;
    border: 1px solid black;
    margin-bottom: 10px;
    overflow: hidden;
}

#paralax-quarterdeck {
    background-image: url(../images/gundeck.jpg); 
    height: 80px;
    width: 100%;
    border: 1px solid black;
    margin-bottom: 10px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}
#paralax-berth {
    background-image: url(../images/berth.png); 
    height: 80px;
    width: 100%;
    border: 1px solid black;
    margin-bottom: 10px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}
#paralax-galley {
    background-image: url(../images/galley.jpg); 
    height: 80px;
    width: 100%;
    border: 1px solid black;
    margin-bottom: 10px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}

.tradingwindow {
    padding: 5px;
    width: 100%;
    background-color: #f1f3ce;
    color: #000;
    text-align: center;
}
.tradingwindow .art img {
    height: 100px;
    border: 1px solid black;
    margin: auto;
}

.tradingwindow table td {
    vertical-align: middle;
}
.tradingwindow table img {
    max-height: 80px;
}


#bodyTop {
    /* background-image: url(../images/ocean800x200.jpg); */
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

#bodyTop a {color: #fff;}

#bodyTop #logo {
    color: #fff;
    font-size: 30px;
    margin: 10px 0 0 20px;
    text-shadow: 0 2px 2px rgba(0,0,0,0.35);
}

#bodyTop #logo img {width: 300px;}

#bodyTop img {float: left;}

#header #menu {
    height: 60px;
    background-image: url(../images/menu.png);
    background-repeat: no-repeat;
    background-position: right;
   padding-right: 60px;
    margin-right: 10px;
   padding-top: 20px;
}

#bodyTop #header-right {
    color: #fff;
    font-size: 20px;
    text-align: right;
    height: 60px;
    padding-right: 20px;
    margin-right: 10px;
    padding-top: 20px;
}

hr {
background-color: #1e656d;
width: 90%;
height: 4px;
}

#splash img {
    float: right;
    width: 50%;
    margin-left: 10px;
    margin-bottom: 10px;
border: 2px solid black;
}
#splash h2 {width: 100%;}
#splash hr {
    width: 100%;
	   margin-top: 10px;
}

#navbar {
    float: left;
    text-align: center;
    width: 100%;
    padding: 5px 5px 5px 5px;
     font-size: 14px;
    color: #ffffff;
}
#navbar .navlinks a {
    color: #f62a00;
    font-weight: bold;
    font-size: 14px;
}


#flag_button img {height: 50px;}

/*################################# */
/*#### these primarily for scuttlebutt ######### */

.username_container_dark {
    width: 100%;
    min-height: 50px;
}
.username_container_light {
    width: 100%;
    min-height: 50px;
}



.username_container_dark a {
    color: #ffffff;
}

.username_container_light a {
    color: #000000;
}


.username_box {
    float: left;
    padding-top: 10px;
    width: 50%;
    font-size: 24px;
    font-style: italic;
}
.username_box img {
    width: 75px;
}

.insignia_box {
    float: left;
    padding: 10px 5px 5px 5px;
}

.insignia_box img {
    height: 30px;
}

.insignia_medal_container {
}

.insignia_medal_box {
    width: 150px;
    height: 200px;
    float: left;
    text-align: center;
}

.insignia_medal_box img {
    width: 100px;
}

	     
.ribbon_box img {
    /*
    height: 25px;
    */
}
/*
.insignia_wrapping {
    float: left;
    padding-right: 10px;
}

.insignia_wrapping img {
    width: 75px;
}
*/

.ribbon_wrapping {
    float: left;
}
.ribbon_wrapping img {
    width: 25px;
   margin: 2px 5px;
}


#ribbon_container img {
    height: 150px;
    width: auto;
    height: 25px;
}
#ribbon_container .ribbon_box {
    padding: 5px;
    margin: 5px;
    width: 110px;
    height: 225px;
}

.dossier_insignia img {
    width: 200px;
}



.dossier_nation img {
    float: none;
    height: 25px;
    width: 30px;
}

.dossier_clan_box {
    display: inline-block;
    margin: auto;
    text-align: center;
    width: 100%;
}

.dossier_ribbon_box img {
    width: 100px;
}

.ClanBadgeSilver {
    border: 1px solid black;
    padding: 2px;
    font-size: 18px;
    font-weight: bold;
    background-image: url(../images/silver-metal.png);
    width: 100px;
    height: 25px;
    margin: auto;
    color: #404040;
}
.ClanBadgeGold {
    border: 1px solid black;
    padding: 2px;
    font-size: 18px;
    font-weight: bold;
    background-image: url(../images/gold-metal.png);
    width: 100px;
    height: 25px;
    margin: auto;
    color: #404040;
}

.ClanBadgeSilver-ribbon {
    float: left;
    border: 1px solid black;
    padding: 2px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-image: url(../images/silver-metal.png);
    width: 73px;
    height: 22px;
    margin: auto;
    color: #404040;
}

.ClanBadgeGold-ribbon {
    float: left;
    border: 1px solid black;
    padding: 2px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-image: url(../images/gold-metal.png);
    width: 73px;
    height: 22px;
    margin: auto;
    color: #404040;
}




.salute_box {
    float: right;
    width: 50%;
}



.scoreboard-container {
    width: 100%;
}

.scoreboard-cell {
    width: 33%;
    height: 150px;
    float: left;
    text-align: center;
    padding: 5px;
    border: 1px solid gray;
}


.scoreboard-cell img {
    height: 80px;
}

.scoreboard-points {
    font-size: 80px;
}

.scoreboard-score {
    font-size: 80px;
}


.post_container {
    border-bottom: 1px solid gray;
    margin-bottom: 20px;
    width: 100%;
    float: left;
    background-color: white;
}

.text_block {
    background-image: url(../images/parchment.jpg); 
    float: left;
    width: 100%;
    color: #000000;
    background-color: #f1f3ce;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.15);
    border-radius: 3px;
    padding: 5px;
}

/*################################# */
/*#### these primarily for public_profile  ######### */

.profile_container {
    display: inline-block;
    margin: auto;
    text-align: center;
    width: 100%;
}

.profile_container .username_box {
    display: inline-block;
    padding: 5px;
    width: 100%;
}

.profile_container .ribbon_box {
    display: inline-block;
    width: 410px;
    float: none;
}

.profile_container .ribbon_box img {
float: left;
width: 75px;
}


/*################################# */
#userHeader {
    background: #ffffff;
    background: -moz-linear-gradient(top,  #ffffff 0%, #f0faff 100%);
    background: -webkit-linear-gradient(top,  #ffffff 0%,#f0faff 100%);
    background: linear-gradient(to bottom,  #ffffff 0%,#f0faff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f0faff',GradientType=0 );
/*    height: 75px; */
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#userHeader .userBox {
    float: left;
    text-align: center;
    width: 33.3333%;
/*    height: 75px; */
    border-left: 1px solid gray;
    padding: 5px;
    display: table;
       
}

#userHeader .userBox .content {
    display: table-cell;
    vertical-align: middle;
}

#userHeader .userBoxLeft {
    float: left;
    text-align: left;
    width: 60%;
/*    height: 75px; */
    padding: 5px;
    display: table;
    border-bottom: 1px solid gray;
    background: #ffffff;
}
#userHeader .userBoxRight {
    float: right;
    text-align: right;
    width: 40%;
/*    height: 75px; */
    padding: 5px;
    display: table;
    border-bottom: 1px solid gray;
    background: #ffffff;

}

#userHeader .userImg {
    height: 50px;
    width: 50px;
    background-color: #9ea5b9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
    border-radius: 5px;
    margin-right: 10px;
}
#userHeader .userName span {
    font-size: 20px;
    font-weight: 700;
    color: #0277bd;
    line-height: 30px;
}

#senderHeader {
    position: relative;
    text-align: center;
    margin-top: 5px;
}

#senderHeader img{
    border-radius: 75px;
    height: 75px;
    width: 75px;
}

#senderHeader .senderName {
    display: inline-block;
}
#senderHeader .senderName span {
    font-size: 16px;
    font-weight: 700;
    color: #0277bd;
    line-height: 30px;
}

#senderHeader .subscribe_container {
    display: inline-block;
}

#userHeader button.logout {
    background-color: #e53935;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 20px;
    width: auto;
}
#userHeader button.logout span {
    background-image: url(../images/logout_bg.png);
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 24px;
    line-height: 16px;
}

#userHeader button.login {
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 20px;
    width: auto;
}

#main {
    background-color: #e1ebf0;
    padding: 0px;    
}



#rank_container {
padding: 5px;
width: 100%;
height: 200px;
}

.rank_list {
border: 1px solid white;
    float: left;
    padding: 5px;
    width: 110px;
height: 80px;
   font-size: 12px;
}
.rank_list img {width: 90px;}

#ribbon_container {
width: 100%;
float: left;
}


.widget_label {
    //background-color: #29b6f6;
    width: 100%;
    border: none;
  //  color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 20px;
    border-radius: 0px;
 //   box-shadow: 0px 1px 1px rgba(0,0,0,0.2);
    margin: 30px 0 0px;
    text-shadow: none;
}

.widget_body {
    padding: 20px;
    text-align: left;
}

.queue_message {
    width: auto;
    background-color: #fff;
    border: none;
    padding: 10px;
    text-align: left;
    margin-bottom: 10px;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.15);
    border-radius: 3px;
    text-shadow: none;
    color: #000;
}
.queue_message span {
    display: block;
    float: right;
    width: 320px;
}
.queue_message .qmImg img {
    border-radius: 70px;
    height: 70px;
    width: 70px;

}

.queue_message .qmImg {
    display: block;
    float: left;
    height: 70px;
    width: 70px;
    border-radius: 70px;
    background-color: #9ea5b9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70px 70px;
    margin-right: 10px;
}
.queue_message .qmTitle {
    font-size: 18px;
    font-weight: 700;
}
.queue_message .qmSubtitle {
    font-size: 15px;
    color: #747e84;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.queue_message .qmText {
}




.fullMess {
    width: auto;
    background-color: #fff;
    border: none;
//    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.15);
    border-radius: 3px;
    position: relative;
}


.fullMess .userCover img {
 //   margin: -20px -20px 0 -20px;
    border-radius: 3px 3px 0 0;
    background-color: #c0c6d5;
display: block;
	 margin-right: auto;
	 margin-left: auto;

}
.fullMess .userImg {
width: 100%;
height: 100px;
	text-align: center;
}
.fullMess .userImg img {
    position: relative;
    width: 108px;
    height: 108px;
    background-color: #9ea5b9;
    border: 4px solid #fff;
    border-radius: 100px;
    margin-top: -20px;
display: block;
	 margin-right: auto;
	 margin-left: auto;
}
.fullMess .userName {
    margin-top: 10px;;
}
.fullMess .userName span {
    font-size: 20px;
    font-weight: 700;
    color: #0277bd;
    line-height: 30px;
}


.subscribe_container {
    margin-top: 0px;
    padding: 0px;
    float: right;
    background-color: #fff;
height: 80px;
}

button.subscribe  {
    background-color: #26c6da;
    border: none;
    padding: 3px;
    color: #fff;
    font-size: 15px;
    margin-top: 5px;
    border-radius: 20px;
    width: 200px; 
    height: 40px;	   
    float: right;
}

.subscribe_container .differential {
    font-size: 15px;
    color: #747e84;
    margin-bottom: 5px;
    padding-bottom: 5px;
    text-align: center;
    width: 200px;
}

.fullMess .messTitle {
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
}
.fullMess .messCat {
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    padding: 4px 8px;
    border: none;
    width: 100%;
	   text-align: center;
}
.fullMess .message {
    font-size: 24px;
    padding: 20px;
}

.reply {
    text-align: center;
padding: 20px;
}
.reply textarea {
    width: 358px;
    border: 1px solid #c8d9e2;
    background-color: #e1ebf0;
    border-radius: 3px;
    padding: 10px 20px;
    margin-bottom: 20px;
}
.reply button {
    /*
    float: left;
    width: 190px;
    height: 80px;
    */
    border: none;
    padding: 5px;
    background-color: #0288d1;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border-radius: 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
    margin: 5px;
}
.reply button span {
    font-weight: 400;
}
button.red {
    background-color: #e53935;
}
.reply button.white {
    background-color: #ffffff;
    color: #000000;
}
.reply button.green {
    background-color: #556B2F;
}
.reply button.profileSend {
    width: 100%;
    height: 40px;
}

.bidform {
    text-align:left;
    padding:20px;
}
.bidform_options {
    text-align:left;
    margin-top: 20px;
}


#footer {
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
    background-color: #384b59; 
    padding: 30px 0;
    color: #fff;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    text-align: left;
}
#footerMenu {
    border-bottom: 1px solid rgba(255,255,255,.25);
    width: 370px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}
#footerMenu li {
    list-style: none;
    float: left;
    padding: 10px 5px;
}
#footer a {
    color: #fff;
}

.footer_content {
    margin-left: auto;
    margin-right: auto;
    width: 800px;
}

.footer_box {
    width: 33%;
    float: left;
}


/*#############################################*/
/* id widget divs */

#login_step1 {
    text-align: center;
}



#dynamic_profile {
    padding: 5px; 
    text-align: left;
}

#dynamic_profile .questionanswer {
    margin: 0px 0px 20px 20px;;
}

.question_button {
width: 120px;
}

.question_text {
    font-size: 24px;
    font-family: Times,Times New Roman,Georgia,serif;
}

#dynamic_profile form {
    text-align: left;
}

#dynamic_profile button {
    width: 100px;
    margin-right: 10px;
}




.contact_container {
    display: block;
    float: left;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    height: 105px;
}

.contact {
    display: block;
    float: left;
}

.contact_info {
    background-color: #fff;
    color: #000;
    text-align: left;
    text-shadow: none;
    margin-bottom: 10px;
    padding: 5px;
    width: 250px;
}
.contact_info img {
    display: block;
    float: left;
    height: 50px;
    width: 50px;
    border-radius: 50px;
    background-color: #9ea5b9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
margin-right: 5px;
}

.contact_info .contactImage {
    float: left;
    height: 80px;
    width: 54px;
}

.contact_info .contactTitle {
    font-size: 16px;
    font-weight: 700;
}

.contact_info .contactName {
    font-size: 14px;
    font-weight: 700;
}

.contact_info .contactPrice {
    font-size: 15px;
    color: #747e84;
}
 
.contact_button {
}
.contact_button button {
    display: block;
    background-color: #556B2F;
    border: none;
    padding: 3px;
    color: #fff;
    font-size: 15px;
    margin-top: 0px;
    border-radius: 20px;
    width: 220px; 
    height: 40px;	   
    float: left;
}


.action {
    display: block;
    float: left;
    margin: 5px;
    height: 100px;
}

.action button {
    background-color: #26c6da;
    border: none;
    padding: 3px;
    color: #fff;
    font-size: 15px;
    margin-top: 5px;
    border-radius: 20px;
    width: 150px; 
}

button.wide_button {
    width:100%;
    height: 40px;
}

#search_input {

}

#search_button {
    width: 70px;
}

#pagination div {
    float: left;
    width: 33%;
}

#pagination .previous {
    text-align: left;
}

#pagination .pages {
    text-align: center;
}

#pagination .next {
    text-align: right;
}

/* ================================= */
/* Member Card Layout System */
/* ================================= */

.member-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.member-card {
    background: linear-gradient(to right, #e6d9c0 0%, #d4c4a8 30%, #c8b896 70%, #d0c2a6 100%) !important;
    border: 2px solid #8b6f3f !important;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.25) !important;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 16px rgba(101, 67, 33, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: #a68b5b;
}

.member-card.on-leave {
    background: linear-gradient(145deg, #f0ede6 0%, #ddd6c1 50%, #e6dfc8 100%) !important;
    border-color: #998866 !important;
    opacity: 0.85;
}

.member-card.on-leave:before {
    content: "ON LEAVE";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6c757d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.member-card.citizen {
    border-left: 4px solid #28a745;
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.member-card-insignia {
    flex-shrink: 0;
}

.member-card-insignia img {
    height: 36px;
    width: auto;
}

.member-card-info {
    flex: 1;
    min-width: 0;
}

.member-card-name {
    font-size: 18px;
    font-weight: bold;
    color: #212529;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-card-name a {
    color: #007bff;
    text-decoration: none;
}

.member-card-name a:hover {
    text-decoration: underline;
}

.member-card-rank {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 0 0;
}

.member-card-body {
    margin-left: 12px;
    flex: 1;
}

.member-card-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.member-card-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.member-card-ribbons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    margin-left: auto;
    padding-left: 12px;
}

.member-card-ribbons img {
    height: 36px;
    border-radius: 2px;
}

/* Rank-specific styling */
.member-card.rank-0 { border-left: 4px solid #28a745; } /* Citizen - Green */
.member-card.rank-1 { border-left: 4px solid #17a2b8; } /* Midshipman - Cyan */
.member-card.rank-2 { border-left: 4px solid #007bff; } /* Ensign - Blue */
.member-card.rank-3 { border-left: 4px solid #6610f2; } /* Lieutenant - Indigo */
.member-card.rank-4 { border-left: 4px solid #6f42c1; } /* Lt Commander - Purple */
.member-card.rank-5 { border-left: 4px solid #e83e8c; } /* Commander - Pink */
.member-card.rank-6 { border-left: 4px solid #dc3545; } /* Captain - Red */
.member-card.rank-7 { border-left: 4px solid #fd7e14; } /* Commodore - Orange */
.member-card.rank-8 { border-left: 4px solid #ffc107; } /* Rear Admiral - Yellow */
.member-card.rank-9 { border-left: 4px solid #20c997; } /* Vice Admiral - Teal */
.member-card.rank-10 { border-left: 4px solid #198754; } /* Admiral - Dark Green */

/* Section headers for rank groups */
.rank-section-header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    margin: 30px 0 20px 0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rank-section-header.on-leave {
    background: linear-gradient(90deg, #6c757d, #495057);
}

.rank-section-header.citizens {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

/* Search section styling */
.naval-register-search {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.naval-register-search h3 {
    margin-top: 0;
    color: #495057;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.search-form button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.search-form button:hover {
    background: #0056b3;
}

/* ================================= */
/* Dossier Profile Cards */
/* ================================= */

.dossier-profile-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 50%, #1e3a5f 100%) !important;
    border: 2px solid #4a90e2 !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dossier-profile-header {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dossier-profile-insignia {
    flex-shrink: 0;
}

.dossier-profile-insignia img {
    height: 80px;
    width: auto;
}

.dossier-profile-info h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dossier-profile-nation img {
    height: 40px;
    margin-top: 8px;
}

.dossier-medals-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 50%, #1e3a5f 100%) !important;
    border: 2px solid #4a90e2 !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.dossier-medals-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 22px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 8px;
}

.dossier-medals-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dossier-medals-grid img {
    height: 80px;
    border-radius: 4px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dossier-medals-grid img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.dossier-medals-grid a {
    position: relative;
    display: inline-block;
}

.shellback-medal {
    position: relative;
    display: inline-block;
}

.dossier-section-card {
    background: linear-gradient(to right, #e6d9c0 0%, #d4c4a8 30%, #c8b896 70%, #d0c2a6 100%) !important;
    border: 2px solid #8b6f3f !important;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.25) !important;
}

.dossier-section-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c1810;
    font-size: 20px;
    border-bottom: 2px solid #8b6f3f;
    padding-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.dossier-operation-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 111, 63, 0.3);
}

.dossier-operation-item:last-child {
    border-bottom: none;
}

.dossier-operation-item a {
    color: #654321;
    text-decoration: none;
    font-weight: 500;
}

.dossier-operation-item a:hover {
    text-decoration: underline;
    color: #4a3018;
}

.dossier-admin-card {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #dc3545 100%) !important;
    border: 2px solid #bd2130 !important;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff;
}

.dossier-admin-card h2,
.dossier-admin-card h3 {
    margin-top: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dossier-admin-card h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
}

.shellback-certificate {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(to right, #f4f1e8 0%, #e8ddc7 50%, #f0ead6 100%) !important;
    border: 2px solid #c4a574 !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.15) !important;
}

/* Member Card Wrapper with Commander Controls */
.member-card-wrapper {
    margin-bottom: 10px;
}

/* Ship Info Bar - visible to everyone */
.ship-info-bar {
    padding: 8px 15px;
    background: #f0f4f8;
    border: 1px solid #d1d9e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
    font-size: 14px;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ship-info-left {
    flex-grow: 1;
    font-weight: 500;
}

.ship-info-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ship-info-bar a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.ship-info-bar a:hover {
    text-decoration: underline;
}

.ship-br {
    color: #6c757d;
    margin-left: 8px;
}

.no-ship {
    color: #6c757d;
    font-style: italic;
}

.select-ship-link {
    color: #dc3545;
    font-weight: 500;
}

/* Roster control buttons */
.roster-control-btn {
    display: inline-flex;
    align-items: center;
    padding: 2px;
}

.roster-control-btn img {
    vertical-align: middle;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .member-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .member-card-header {
        gap: 8px;
    }
    
    .welcome-hero-card,
    .welcome-mission-card,
    .welcome-video-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .welcome-hero-card .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .welcome-mission-card h2 {
        font-size: 22px;
    }
    
    .welcome-mission-card .mission-statement {
        font-size: 16px;
    }
    
    .welcome-video-card iframe {
        width: 100%;
        height: 200px;
    }
    
    .member-card-name {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form input[type="text"] {
        min-width: auto;
    }

    .dossier-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dossier-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .dossier-profile-medals {
        margin-left: 0;
        justify-content: center;
        padding-left: 0;
    }
}

/* ================================= */
/* Operations Create Form Cards */
/* ================================= */

.operations-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.operations-form-card {
    background: linear-gradient(to right, #e6d9c0 0%, #d4c4a8 30%, #c8b896 70%, #d0c2a6 100%) !important;
    border: 2px solid #8b6f3f !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.25) !important;
    color: #2c1810;
}

.operations-form-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c1810;
    font-size: 20px;
    border-bottom: 2px solid #8b6f3f;
    padding-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.operations-form-card #art img {
    height: 24px;
    width: auto;
}

.operations-form-field {
    margin-bottom: 15px;
}

.operations-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c1810;
}

.operations-form-field input[type="text"],
.operations-form-field select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #8b6f3f;
    border-radius: 4px;
    background-color: #f8f4e6;
    color: #2c1810;
    font-size: 14px;
    box-sizing: border-box;
}

.operations-form-field input[type="text"]:focus,
.operations-form-field select:focus {
    outline: none;
    border-color: #654321;
    box-shadow: 0 0 4px rgba(101, 67, 33, 0.3);
}

.operations-form-field .form-help {
    font-size: 12px;
    color: #6b5b42;
    margin-top: 4px;
    font-style: italic;
}

.operations-form-button {
    background: linear-gradient(135deg, #8b6f3f 0%, #654321 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin-top: 10px;
}

.operations-form-button:hover {
    background: linear-gradient(135deg, #654321 0%, #4a3018 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.3);
}

.port-lookup-results {
    margin-top: 15px;
    padding: 12px;
    background-color: #f0ead6;
    border: 1px solid #c4a574;
    border-radius: 4px;
}

.port-lookup-results a {
    display: inline-block;
    margin: 4px 8px 4px 0;
    padding: 6px 12px;
    background-color: #8b6f3f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.port-lookup-results a:hover {
    background-color: #654321;
    text-decoration: none;
}

.operations-time-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: end;
}

.operations-nav-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.operations-nav-link:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Mobile responsiveness for operations forms */
@media (max-width: 768px) {
    .operations-form-container {
        margin: 0 10px;
    }
    
    .operations-time-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .operations-form-card {
        padding: 15px;
    }
    
    .port-lookup-results a {
        display: block;
        margin: 6px 0;
    }
}

/* ================================= */
/* Port Autocomplete Dropdown */
/* ================================= */

.port-autocomplete-container {
    position: relative;
}

.port-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f8f4e6;
    border: 2px solid #8b6f3f;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.25);
}

.port-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(139, 111, 63, 0.2);
    color: #2c1810;
    transition: background-color 0.2s ease;
}

.port-autocomplete-item:last-child {
    border-bottom: none;
}

.port-autocomplete-item:hover,
.port-autocomplete-item.highlighted {
    background-color: #8b6f3f;
    color: #ffffff;
}

.port-autocomplete-loading {
    padding: 10px 12px;
    color: #6b5b42;
    font-style: italic;
    text-align: center;
}

.port-autocomplete-no-results {
    padding: 10px 12px;
    color: #6b5b42;
    font-style: italic;
    text-align: center;
}

/* Hide the old search button when autocomplete is active */
.autocomplete-enabled .operations-form-button.port-search-btn {
    display: none;
}

/* Port selection validation states */
#portlookup.port-selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

#portlookup.port-error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* ================================= */
/* Ship Selection Modal Styles */
/* ================================= */

.ship-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.ship-modal-content {
    background-color: #f8f4e6;
    margin: 10% auto;
    padding: 0;
    border: 2px solid #8b6f3f;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(101, 67, 33, 0.4);
}

.ship-modal-header {
    background: linear-gradient(135deg, #8b6f3f 0%, #a0825a 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ship-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ship-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.ship-modal-close:hover {
    color: #ffddaa;
}

.ship-modal-body {
    padding: 20px;
}

.ship-form-field {
    margin-bottom: 20px;
}

.ship-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c1810;
}

.ship-autocomplete-container {
    position: relative;
}

#shipSearch {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #8b6f3f;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #2c1810;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#shipSearch:focus {
    outline: none;
    border-color: #654321;
    background-color: #fffef8;
}

.ship-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f8f4e6;
    border: 2px solid #8b6f3f;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(101, 67, 33, 0.25);
}

.ship-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(139, 111, 63, 0.2);
    color: #2c1810;
    transition: background-color 0.2s ease;
}

.ship-autocomplete-item:last-child {
    border-bottom: none;
}

.ship-autocomplete-item:hover,
.ship-autocomplete-item.highlighted {
    background-color: #8b6f3f;
    color: #ffffff;
}

.ship-autocomplete-loading {
    padding: 10px 12px;
    color: #6b5b42;
    font-style: italic;
    text-align: center;
}

.ship-autocomplete-no-results {
    padding: 10px 12px;
    color: #6b5b42;
    font-style: italic;
    text-align: center;
}

.ship-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.ship-select-btn {
    background: linear-gradient(135deg, #1e5128 0%, #2d5a3d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ship-select-btn:hover {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e5128 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 81, 40, 0.3);
}

.ship-cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ship-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Ship selection validation states */
#shipSearch.ship-selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

#shipSearch.ship-error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .ship-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .ship-modal-header {
        padding: 12px 16px;
    }
    
    .ship-modal-body {
        padding: 16px;
    }
    
    .ship-modal-buttons {
        flex-direction: column;
    }
    
    .ship-select-btn,
    .ship-cancel-btn {
        width: 100%;
    }
}


