/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.4;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: left;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.magnifying-glass {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
}

.magnifying-glass::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 6px;
    height: 2px;
    background-color: #333;
    transform: rotate(45deg);
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.header-divider {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 0;
}

/* Search section */
.search-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-prompt {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #007bff;
}

.search-button {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #e55a2b;
}

/* Main content */
.main-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.main-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    flex-shrink: 0;
}

.description {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

/* ISBN Example section */
.isbn-example {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.isbn-number {
    margin-bottom: 15px;
    text-align: center;
}

.isbn-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.isbn-code {
    background-color: #90EE90;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
}

.barcode {
    margin: 15px 0;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

.barcode-lines {
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 2px,
        transparent 2px,
        transparent 4px
    );
    width: 150px;
    margin: 0 auto;
}

.isbn-plain {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.isbn-location {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Custom content section */
.custom-content {
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.custom-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1976d2;
    text-align: center;
}

.contact-info {
    font-size: 14px;
    color: #333;
    text-align: center;
}

.contact-info a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .search-container {
        max-width: none;
    }
    
    .isbn-example, .custom-content {
        padding: 15px;
    }
    
    .barcode-lines {
        width: 120px;
        height: 30px;
    }
    
    .main-content {
        gap: 15px;
    }
    
    .description {
        margin-bottom: 15px;
    }
    
    .custom-content {
        max-width: 100%;
    }
}
