/* Frontend Styles for Internal Auditor Manager */

.iam-search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.iam-search-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.iam-search-form {
    margin-bottom: 30px;
}

.iam-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.iam-form-group {
    flex: 1;
    max-width: 300px;
}

.iam-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.iam-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.iam-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.iam-form-actions {
    text-align: center;
}

.iam-search-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iam-search-btn:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.iam-search-results {
    margin-top: 30px;
}

.iam-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* ID Card Styles - Exact match to provided design */

.iam-id-card-container {
    display: block;
    justify-content: center;
    margin: 30px 0;
}

.iam-id-card {
    width: 500px;
    height: 320px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: white;
    border: 2px solid #ddd;
}

.iam-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/card.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.iam-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.iam-logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.iam-logo {
    width: 80px;
    height: 80px;
    background-image: url('../img/card.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    margin-right: 20px;
    flex-shrink: 0;
    opacity: 0!important;
}

.iam-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    letter-spacing: 2px;
}

.iam-main-content {
    display: flex;
    flex: 1;
    gap: 30px;
}

.iam-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.iam-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.iam-label {
    font-weight: bold;
    color: #666;
    min-width: 140px;
    font-size: 16px;
}

.iam-colon {
    margin: 0 10px;
    font-weight: bold;
    color: #666;
}

.iam-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.iam-right-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -120px;
    margin-right: -46px;
}

.iam-photo-frame {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #f0f0f0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.iam-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iam-no-photo {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.iam-search-again {
    text-align: center;
    margin-top: 20px;
}

.iam-search-again-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iam-search-again-btn:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

/* Error Card Styles */
.iam-auditor-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.iam-auditor-card.iam-success {
    border-left: 5px solid #00a32a;
}

.iam-auditor-card.iam-error {
    border-left: 5px solid #d63638;
}

.iam-card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.iam-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.iam-success .iam-card-header h4 {
    color: #00a32a;
}

.iam-error .iam-card-header h4 {
    color: #d63638;
}

.iam-card-content {
    padding: 20px;
}

.iam-error-message {
    font-size: 16px;
    color: #d63638;
    text-align: center;
    margin: 0;
    padding: 20px;
    background: #fef7f7;
    border-radius: 6px;
}


/* Responsive Design */
@media (max-width: 768px) {
    
    .iam-id-card-container {
    display: block !important;
    overflow: scroll;
}
    
}

@media (max-width: 480px) {
    .iam-id-card-container {
    display: block !important;
    overflow: scroll;
}
    
}