/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #1b7bb3, #155a87);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
}

.nav-link:hover {
    color: #e3f2fd;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.user-balance {
    color: #4fc3f7;
    font-weight: bold;
    font-size: 16px;
}

.logout {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: background 0.3s;
}

.logout:hover {
    background: rgba(255,255,255,0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Legacy styles for compatibility */
#navbar {
    display: none; /* Hide old navbar */
}

#contents {
    padding-top: 2rem;
    height: 100%;
    width: 90%;
    margin: auto;
}

#tbl {
    display: table;
    border-collapse: separate;
    border-spacing: 2rem;
    margin-top: 2rem;
    width: 100%;
}

#floats {
    overflow: hidden;
    width: 100%;
    display: table-row;
}

#transfer {
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 45%;
    display: table-cell;
    background: white;
}

#services {
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 45%;
    display: table-cell;
    background: white;
}

#formtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1b7bb3;
    margin-bottom: 1rem;
    text-align: center;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #1b7bb3;
    box-shadow: 0 0 5px rgba(27, 123, 179, 0.3);
}

#outersb {
    margin-top: 1rem;
}

#sbbtn {
    background: #1b7bb3;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s;
}

#sbbtn:hover {
    background: #155a87;
}

#buy {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

#buy:hover {
    background: #c82333;
}

.service_item {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1b7bb3;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

#msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #1b7bb3, #155a87);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-user {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-left: 0;
        padding-top: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    #tbl {
        display: block;
    }
    
    #floats {
        display: block;
    }
    
    #transfer, #services {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #1b7bb3;
    color: white;
}

.btn-primary:hover {
    background: #155a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

#services{
    font-size: 2rem;
    /* position: fixed;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%); */
    border-radius: 5px;
    border: 1px solid #aaa;
    box-shadow: 5px 5px 10px #888;
    padding:2rem;
    
    width: 45%;
    display:table-cell;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
  }
input{
    font-size:1rem;
    padding:0.5rem;
    border-radius: 5px;
    
}
#service_item{
    font-size:0.8rem;
    width:100%;
    
}
a {
    
    
    text-decoration: none;
}

#buy{
    
    position: relative;
  right: 6px; 
    padding:0.1rem;
    margin: 1rem auto;
    border-radius : 30px 30px;
    border-style: solid;
    border-width: 2px;  
    border-color: #050;  
    color:#050;
    font-size:1.5rem;
    width:30%;
    background-color: white;
    transition: background-color 1s;
    padding-left: 1rem;
    padding-right: 1rem;
   
}
#buy:hover{
    background-color: #050;
    color:rgb(255, 255, 255);
    cursor: pointer;
}
#formtitle{
    font-size:1.5rem;
    padding: 1rem;
    text-align:center;
}
/*
input[type="submit"] {
    padding:0.1rem;
    margin: 1rem auto;
    border-radius : 30px 30px;
    border-style: solid;
    border-width: 2px;  
    border-color: #005;  
    color:#005;
    font-size:1.5rem;
    width:30%;
    background-color: white;
    transition: background-color 1s;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

input[type="submit"]:hover{
    background-color: #005;
    color:rgb(255, 255, 255);
    cursor: pointer;
}*/

#outersb{
    width: 100%;
    
    
}

#sbbtn {
    padding:0.1rem;
    text-align: center;
    border-radius : 30px 30px;
    border-style: solid;
    border-width: 2px;  
    border-color: #005;  
    color:#005;
    font-size:1.5rem;
    width:30%;
    background-color: white;
    transition: background-color 1s;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#sbbtn:hover{
    background-color: #005;
    color:rgb(255, 255, 255);
    cursor: pointer;
}

li {
    list-style-type: none;
}

#feedback_c{
   
    width:80%;
    margin:5rem auto;
}

textarea{
    width:100%;
    height:10rem;
    
}
