/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #111;
    line-height: 1.7;
    padding: 20px;
}

.container {
    max-width: 1300px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

header {
    background-color: transparent;
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid #eee;
}

header .logo-container {
    margin-bottom: 16px;
}

header .logo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header .logo:hover {
    transform: scale(1.08);
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #222;
    margin: 0;
}

main {
    padding: 40px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    background-color: #fafafa;
    color: #111;
    transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    border-color: #178389;
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.1);
}

.search-form button {
    background-color: #046363;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.3);
}

.search-form button:hover {
    background-color: #178389;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 243, 255, 0.4);
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 16px;
    border-radius: 8px;
    margin: 20px auto;
    font-size: 15px;
    text-align: center;
    max-width: 600px;
    border: 1px solid #ffcdd2;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.05);
}

/* Layout: Two Columns (Invoice & Bank) */
.details-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.column h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #178389;
    display: inline-block;
}

.column p {
    margin-bottom: 6px;
    font-size: 16px;
    color: #333;
}

.column strong {
    color: #444;
    min-width: 140px;
    display: inline-block;
}

.amount {
    color: #ff1212;
    font-weight: bold;
}

.view-invoice-btn {
    margin-top: 16px;
}

.view-invoice-btn a {
    text-decoration: none;
}

.view-invoice-btn button {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ccc;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.view-invoice-btn button:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
}

/* Upload Proof Section (Centered Below) */
.upload-section {
    text-align: center;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 14px;
    border: 1px dashed #ddd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.upload-section h3 {
    font-size: 20px;
    color: black;
    margin-bottom: 16px;
    font-weight: 600;
}


.upload-label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: black;
}

.upload-section input[type="file"] {
    margin-bottom: 18px;
    color: #666;
}

.upload-section input::file-selector-button {
    background-color: #178389;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upload-section input::file-selector-button:hover {
    background-color: #149aaa;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.upload-section button {
    background-color: #046363;
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 243, 255, 0.35);
}

.upload-section button:hover {
    background-color: #178389;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 243, 255, 0.45);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 50px;
    background-color: #fcfcfc;
}

.custom-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #046363; /* Normal color */
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.custom-upload-btn:hover {
    background-color: #178389; /* Hover color */
}

/* Invoice group: label above field with gap above the whole group */
.invoice-group {
    display: flex;
    flex-direction: column;
    gap: 8px;            /* space between label and input */
    width: 100%;
    margin-top: 18px;    /* gap above the invoice field as requested */
    max-width: 600px;    /* keeps it same width as search form */
    margin-left: auto;
    margin-right: auto;
}

/* Make the label sit above the field and look nicer */
.invoice-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: normal; /* override the previous nowrap */
}

/* Ensure the input stretches nicely */
.invoice-group input[type="text"] {
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Focus state consistent with your existing rules */
.invoice-group input[type="text"]:focus {
    border-color: #178389;
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    header .logo {
        width: 90px;
        height: 90px;
    }

    header h1 {
        font-size: 24px;
    }

    main {
        padding: 30px 20px;
    }

    .details-grid {
        flex-direction: column;
    }

    .search-form,
    .upload-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form input[type="text"],
    .search-form button {
        width: 100%;
    }
}
